From: Johannes Berg Date: Tue, 5 May 2009 13:02:54 +0000 (+0200) Subject: print version in help output X-Git-Tag: v0.9.14~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21e708e5c6438befeb42418ce7f9d87d6e85877d;p=thirdparty%2Fiw.git print version in help output --- diff --git a/iw.c b/iw.c index 2102278..4bfb24e 100644 --- a/iw.c +++ b/iw.c @@ -160,7 +160,7 @@ static void usage(bool full) fprintf(stderr, "Usage:\t%s [options] command\n", argv0); usage_options(); - fprintf(stderr, "\t--version\tshow version\n"); + fprintf(stderr, "\t--version\tshow version (%s)\n", iw_version); fprintf(stderr, "Commands:\n"); for (cmd = &__start___cmd; cmd < &__stop___cmd; cmd = (struct cmd *)((char *)cmd + cmd_size)) {