From efbb344a59cc136f895d795058032e3f9c88a751 Mon Sep 17 00:00:00 2001 From: Chen Yang Date: Fri, 18 Jan 2013 14:52:12 +0800 Subject: Btrfs-progs: Complete the help information of btrfs send/receive When typing command "btrfs send --help" or "btrfs receive --help", the help information of the commands is incomplete, which only shows a short usage. This patch helps to display the complete infomation of the commands. Signed-off-by: Cheng Yang --- cmds-send.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'cmds-send.c') diff --git a/cmds-send.c b/cmds-send.c index b314c400..43355dbe 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -637,7 +637,7 @@ static const char * const send_cmd_group_usage[] = { NULL }; -static const char * const cmd_send_usage[] = { +const char * const cmd_send_usage[] = { "btrfs send [-v] [-p ] [-c ] ", "Send the subvolume to stdout.", "Sends the subvolume specified by to stdout.", @@ -651,7 +651,7 @@ static const char * const cmd_send_usage[] = { "which case 'btrfs send' will determine a suitable parent among the", "clone sources itself.", "\n", - "-v Enable verbose debug output. Each occurrency of", + "-v Enable verbose debug output. Each occurrence of", " this option increases the verbose level more.", "-p Send an incremental stream from to", " .", @@ -663,13 +663,6 @@ static const char * const cmd_send_usage[] = { NULL }; -const struct cmd_group send_cmd_group = { - send_cmd_group_usage, NULL, { - { "send", cmd_send_start, cmd_send_usage, NULL, 0 }, - { 0, 0, 0, 0, 0 }, - }, -}; - int cmd_send(int argc, char **argv) { return cmd_send_start(argc, argv); -- cgit v1.2.3