btrfs-progs: add -V description in print_usage
authorWang Sheng-Hui <shhuiw@gmail.com>
Tue, 16 Oct 2012 07:29:15 +0000 (15:29 +0800)
committerDavid Sterba <dsterba@suse.cz>
Thu, 17 Jan 2013 17:27:18 +0000 (18:27 +0100)
mkfs supports the option -V/--version.
Add its description to print_usage().

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
mkfs.c

diff --git a/mkfs.c b/mkfs.c
index 8fda48a..7b72926 100644 (file)
--- a/mkfs.c
+++ b/mkfs.c
@@ -350,6 +350,7 @@ static void print_usage(void)
        fprintf(stderr, "\t -s --sectorsize min block allocation\n");
        fprintf(stderr, "\t -r --rootdir the source directory\n");
        fprintf(stderr, "\t -K --nodiscard do not perform whole device TRIM\n");
+       fprintf(stderr, "\t -V --version print the mkfs.btrfs version and exit\n");
        fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION);
        exit(1);
 }