diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-28 18:55:42 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-28 18:55:42 +0000 |
commit | 0999545e84b7597e2503fd69f77fb291651b76db (patch) | |
tree | fbb130752cce2d094b93bcd7af1a2f086ea5a820 | |
parent | cf60f7b59f06308602d2cb4cc72b0b47d2788c16 (diff) |
Make 'print version' parameter be -V
-rw-r--r-- | daemon/rrdbotd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/rrdbotd.c b/daemon/rrdbotd.c index 0b998b3..c28825d 100644 --- a/daemon/rrdbotd.c +++ b/daemon/rrdbotd.c @@ -166,7 +166,7 @@ usage() { fprintf(stderr, "usage: rrdbotd [-M] [-c confdir] [-w workdir] [-m mibdir] \n"); fprintf(stderr, " [-d level] [-p pidfile] [-r retries] [-t timeout]\n"); - fprintf(stderr, " rrdbotd -v\n"); + fprintf(stderr, " rrdbotd -V\n"); exit(2); } @@ -222,7 +222,7 @@ main(int argc, char* argv[]) g_state.timeout = DEFAULT_TIMEOUT; /* Parse the arguments nicely */ - while((ch = getopt(argc, argv, "c:d:Mp:r:t:w:v")) != -1) + while((ch = getopt(argc, argv, "c:d:Mp:r:t:w:V")) != -1) { switch(ch) { @@ -276,7 +276,7 @@ main(int argc, char* argv[]) break; /* Print version number */ - case 'v': + case 'V': version(); break; |