diff options
author | Chen Yang <chenyang.fnst@cn.fujitsu.com> | 2013-01-18 14:52:12 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-01 16:55:03 +0100 |
commit | efbb344a59cc136f895d795058032e3f9c88a751 (patch) | |
tree | 56aba92c2fb66b741b3102be44e18c6f3abe8ac8 /cmds-send.c | |
parent | 1be4621bc932baaad589d20ec021582fff43c250 (diff) |
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 <chenyang.fnst@cn.fujitsu.com>
Diffstat (limited to 'cmds-send.c')
-rw-r--r-- | cmds-send.c | 11 |
1 files changed, 2 insertions, 9 deletions
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 <parent>] [-c <clone-src>] <subvol>", "Send the subvolume to stdout.", "Sends the subvolume specified by <subvol> 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 <parent> Send an incremental stream from <parent> to", " <subvol>.", @@ -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); |