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:
Hubert Kario 2011-01-23 13:39:36 +01:00 committed by Chris Mason
parent 42f9568bfd
commit d388a77636
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}