Skip to contentSkip to conversation

Add version number to --help output

PATCH In review Bruce Cran 2 participants 2 messages Jul 30, 2011

lore
Share & tools
lore

Bruce Cran

author
#0 lore raw

PATCH 1/1 Add version number to --help output

It's useful to see what version is being used with --help. The attached patch adds that.

Signature · 1 line
Bruce Cran
init.c +1 -0
index 98e10f7..9b386c5 100644
@@ -1021,6 +1021,7 @@ static int setup_thread_area(void)
 
 static void usage(const char *name)
 {
+       printf("%s\n", fio_version_string);
        printf("%s [options] [job options] <job file(s)>\n", name);
        printf("\t--debug=options\tEnable debug logging\n");
        printf("\t--output\tWrite output to file\n");
#1 lore raw
Quoted 2 lines · Bruce Cran

It's useful to see what version is being used with --help. The attached patch adds that.

Thanks, aplied.

Signature · 1 line
Jens Axboe