diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2012-02-08 17:45:54 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2012-02-08 18:55:51 +0200 |
commit | 08b51bd731467ac8da182d69c827a8a5c7877079 (patch) | |
tree | 43bf4f0075db78ee1170fb9f96cefaf591b38ddf /btrfs.c | |
parent | 6cd813b6fc18ba75edfcfad5857d27f0265c2c28 (diff) |
Btrfs-progs: allow multi-line command group synopsis
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'btrfs.c')
-rw-r--r-- | btrfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -22,8 +22,10 @@ #include "commands.h" #include "version.h" -static const char btrfs_cmd_group_usage[] = - "btrfs [--help] [--version] <group> [<group>...] <command> [<args>]"; +static const char * const btrfs_cmd_group_usage[] = { + "btrfs [--help] [--version] <group> [<group>...] <command> [<args>]", + NULL +}; static const char btrfs_cmd_group_info[] = "Use --help as an argument for information on a specific group or command."; @@ -225,7 +227,7 @@ static int handle_options(int *argc, char ***argv) } else { fprintf(stderr, "Unknown option: %s\n", arg); fprintf(stderr, "usage: %s\n", - btrfs_cmd_group.usagestr); + btrfs_cmd_group.usagestr[0]); exit(129); } |