From 08b51bd731467ac8da182d69c827a8a5c7877079 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Wed, 8 Feb 2012 17:45:54 +0200 Subject: Btrfs-progs: allow multi-line command group synopsis Signed-off-by: Ilya Dryomov --- btrfs.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'btrfs.c') diff --git a/btrfs.c b/btrfs.c index 76f725a9..88238d6d 100644 --- a/btrfs.c +++ b/btrfs.c @@ -22,8 +22,10 @@ #include "commands.h" #include "version.h" -static const char btrfs_cmd_group_usage[] = - "btrfs [--help] [--version] [...] []"; +static const char * const btrfs_cmd_group_usage[] = { + "btrfs [--help] [--version] [...] []", + 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); } -- cgit v1.2.3