diff options
author | 2001-08-03 10:31:30 +0000 | |
---|---|---|
committer | 2001-08-03 10:31:30 +0000 | |
commit | 2a0fc48c718f5d0bc11802dc24e4e6e77b1b8020 (patch) | |
tree | b51ed40d86500370ecd82ade62c9ac8ef118f2b4 /usr.bin/ssh/ssh-keyscan.c | |
parent | document smartcard options. ok markus@ (diff) | |
download | wireguard-openbsd-2a0fc48c718f5d0bc11802dc24e4e6e77b1b8020.tar.xz wireguard-openbsd-2a0fc48c718f5d0bc11802dc24e4e6e77b1b8020.zip |
improve usage(). ok markus@
Diffstat (limited to 'usr.bin/ssh/ssh-keyscan.c')
-rw-r--r-- | usr.bin/ssh/ssh-keyscan.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-keyscan.c b/usr.bin/ssh/ssh-keyscan.c index 18e3b024d40..ab58b0db97a 100644 --- a/usr.bin/ssh/ssh-keyscan.c +++ b/usr.bin/ssh/ssh-keyscan.c @@ -7,7 +7,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-keyscan.c,v 1.24 2001/06/23 15:12:20 itojun Exp $"); +RCSID("$OpenBSD: ssh-keyscan.c,v 1.25 2001/08/03 10:31:30 jakob Exp $"); #include <sys/queue.h> #include <errno.h> @@ -562,8 +562,12 @@ nexthost(int argc, char **argv) static void usage(void) { - fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname); - return; + fprintf(stderr, "Usage: %s [options] [ host | addrlist namelist ]\n", + __progname); + fprintf(stderr, "Options:\n"); + fprintf(stderr, " -t timeout Set connection timeout.\n"); + fprintf(stderr, " -f file Read hosts or addresses from file.\n"); + exit(1); } int |