[PATCH] Add version number to --help output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Bruce Cran
diff --git a/init.c b/init.c
index 98e10f7..9b386c5 100644
--- a/init.c
+++ b/init.c
@@ -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");

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux