projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42f9568
)
add advanced use of --help to help message
author
Hubert Kario
<kario@wit.edu.pl>
Sun, 23 Jan 2011 12:39:36 +0000
(13:39 +0100)
committer
Chris Mason
<chris.mason@oracle.com>
Tue, 25 Oct 2011 13:18:32 +0000
(09:18 -0400)
explain how to use
btrfs <cmd> --help
command in help message
Signed-off-by: Hubert Kario <kario@wit.edu.pl>
Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
btrfs.c
patch
|
blob
|
history
diff --git
a/btrfs.c
b/btrfs.c
index
4cd4210
..
8e0975e
100644
(file)
--- a/
btrfs.c
+++ b/
btrfs.c
@@
-146,6
+146,8
@@
static void help(char *np)
print_help(np, cp);
printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np);
+ printf("\n\t%s <cmd> --help\n\t\tShow detailed help for a command or\n\t\t"
+ "subset of commands.\n",np);
printf("\n%s\n", BTRFS_BUILD_VERSION);
}