summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2010-01-13 12:48:35 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2010-01-13 12:48:35 +0000
commitc246e27272f7fc5fc694e317f329c743c9f60b39 (patch)
tree5a27caab9d6e27ed232bc101a1f5864195ded461 /usr.bin
parent385bae9d0fcb4bbe94b9130fabdfab50459774a4 (diff)
sftp.1: put ls -h in the right place
sftp.c: as above, plus add -p to get/put, and shorten their arg names to keep the help usage nicely aligned ok djm
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sftp.110
-rw-r--r--usr.bin/ssh/sftp.c8
2 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/ssh/sftp.1 b/usr.bin/ssh/sftp.1
index f6371cf549f..175dc6520f2 100644
--- a/usr.bin/ssh/sftp.1
+++ b/usr.bin/ssh/sftp.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sftp.1,v 1.81 2010/01/13 01:40:16 djm Exp $
+.\" $OpenBSD: sftp.1,v 1.82 2010/01/13 12:48:34 jmc Exp $
.\"
.\" Copyright (c) 2001 Damien Miller. All rights reserved.
.\"
@@ -393,7 +393,7 @@ to
.It Ic lpwd
Print local working directory.
.It Xo Ic ls
-.Op Fl 1aflhnrSt
+.Op Fl 1afhlnrSt
.Op Ar path
.Xc
Display a remote directory listing of either
@@ -418,14 +418,14 @@ List files beginning with a dot
.It Fl f
Do not sort the listing.
The default sort order is lexicographical.
-.It Fl l
-Display additional details including permissions
-and ownership information.
.It Fl h
When used with a long format option, use unit suffixes: Byte, Kilobyte,
Megabyte, Gigabyte, Terabyte, Petabyte, and Exabyte in order to reduce
the number of digits to four or fewer using powers of 2 for sizes (K=1024,
M=1048576, etc.).
+.It Fl l
+Display additional details including permissions
+and ownership information.
.It Fl n
Produce a long listing with user and group information presented
numerically.
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index 32a3afab43b..fa0485c674c 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.120 2010/01/13 04:10:50 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.121 2010/01/13 12:48:34 jmc Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -210,18 +210,18 @@ help(void)
"df [-hi] [path] Display statistics for current directory or\n"
" filesystem containing 'path'\n"
"exit Quit sftp\n"
- "get [-Pr] remote-path [local-path] Download file\n"
+ "get [-Ppr] remote [local] Download file\n"
"help Display this help text\n"
"lcd path Change local directory to 'path'\n"
"lls [ls-options [path]] Display local directory listing\n"
"lmkdir path Create local directory\n"
"ln oldpath newpath Symlink remote file\n"
"lpwd Print local working directory\n"
- "ls [-1aflnrSt] [path] Display remote directory listing\n"
+ "ls [-1afhlnrSt] [path] Display remote directory listing\n"
"lumask umask Set local umask to 'umask'\n"
"mkdir path Create remote directory\n"
"progress Toggle display of progress meter\n"
- "put [-Pr] local-path [remote-path] Upload file\n"
+ "put [-Ppr] local [remote] Upload file\n"
"pwd Display remote working directory\n"
"quit Quit sftp\n"
"rename oldpath newpath Rename remote file\n"