From: Bruce Cran <bruce@cran.org.uk>
To: Jens Axboe <axboe@kernel.dk>
Cc: fio@vger.kernel.org
Subject: [PATCH] Add version number to --help output
Date: Sat, 30 Jul 2011 10:47:38 +0100 [thread overview]
Message-ID: <4E33D33A.9070805@cran.org.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 106 bytes --]
It's useful to see what version is being used with --help. The attached
patch adds that.
--
Bruce Cran
[-- Attachment #2: fio.diff --]
[-- Type: text/plain, Size: 420 bytes --]
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");
next reply other threads:[~2011-07-30 9:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 9:47 Bruce Cran [this message]
2011-07-30 10:56 ` [PATCH] Add version number to --help output Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E33D33A.9070805@cran.org.uk \
--to=bruce@cran.org.uk \
--cc=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox