]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
print version in help output
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 5 May 2009 13:02:54 +0000 (15:02 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 5 May 2009 13:02:54 +0000 (15:02 +0200)
iw.c

diff --git a/iw.c b/iw.c
index 2102278034700828e9b230dca30de7808991d014..4bfb24e57deaca1ac040fc7e483ad577a7c37e92 100644 (file)
--- 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)) {