add advanced use of --help to help message
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>
This commit is contained in:
parent
42f9568bfd
commit
d388a77636
2
btrfs.c
2
btrfs.c
|
@ -146,6 +146,8 @@ static void help(char *np)
|
||||||
print_help(np, cp);
|
print_help(np, cp);
|
||||||
|
|
||||||
printf("\n\t%s help|--help|-h\n\t\tShow the help.\n",np);
|
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);
|
printf("\n%s\n", BTRFS_BUILD_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue