From 0999545e84b7597e2503fd69f77fb291651b76db Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 Jan 2006 18:55:42 +0000 Subject: Make 'print version' parameter be -V --- daemon/rrdbotd.c | 6 +++--- 1 file 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; -- cgit v1.2.3