diff options
author | Damien Miller <djm@mindrot.org> | 2014-04-20 13:01:30 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-04-20 13:01:30 +1000 |
commit | f0858de6e1324ec730752387074b111b8551081e (patch) | |
tree | 99f994b3ec292ddcfa0f82386270f760810abe97 /ssh-agent.c | |
parent | 94bfe0fbd6e91a56b5b0ab94ac955d2a67d101aa (diff) |
- deraadt@cvs.openbsd.org 2014/03/15 17:28:26
[ssh-agent.c ssh-keygen.1 ssh-keygen.c]
Improve usage() and documentation towards the standard form.
In particular, this line saves a lot of man page reading time.
usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1]
[-N new_passphrase] [-C comment] [-f output_keyfile]
ok schwarze jmc
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index ba2461211..f4c0524cc 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-agent.c,v 1.183 2014/02/02 03:44:31 djm Exp $ */ | 1 | /* $OpenBSD: ssh-agent.c,v 1.184 2014/03/15 17:28:26 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1001,15 +1001,10 @@ check_parent_exists(void) | |||
1001 | static void | 1001 | static void |
1002 | usage(void) | 1002 | usage(void) |
1003 | { | 1003 | { |
1004 | fprintf(stderr, "usage: %s [options] [command [arg ...]]\n", | 1004 | fprintf(stderr, |
1005 | __progname); | 1005 | "usage: ssh-agent [-c | -s] [-d] [-a bind_address] [-t life]\n" |
1006 | fprintf(stderr, "Options:\n"); | 1006 | " [command [arg ...]]\n" |
1007 | fprintf(stderr, " -c Generate C-shell commands on stdout.\n"); | 1007 | " ssh-agent [-c | -s] -k\n"); |
1008 | fprintf(stderr, " -s Generate Bourne shell commands on stdout.\n"); | ||
1009 | fprintf(stderr, " -k Kill the current agent.\n"); | ||
1010 | fprintf(stderr, " -d Debug mode.\n"); | ||
1011 | fprintf(stderr, " -a socket Bind agent socket to given name.\n"); | ||
1012 | fprintf(stderr, " -t life Default identity lifetime (seconds).\n"); | ||
1013 | exit(1); | 1008 | exit(1); |
1014 | } | 1009 | } |
1015 | 1010 | ||