path: root/commands.h
diff options
authorDavid Sterba <>2015-06-08 18:54:04 +0200
committerDavid Sterba <>2015-06-09 14:27:54 +0200
commitadd9d7fe4b0f0f856adc4fd390350d807204f70c (patch)
tree76546d8085b6792b9abec89ff08c3dad06d0d934 /commands.h
parent330709ee136f146551718c1c2f351445cba95bfa (diff)
btrfs-progs: print compact help for btrfs
Running 'btrfs' without arguments will print complete help that spans a lot of lines and is really helpful. Print only subcommand group names with short descriptions, similar to what 'git' does. Signed-off-by: David Sterba <>
Diffstat (limited to 'commands.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/commands.h b/commands.h
index bd23340d..f9733719 100644
--- a/commands.h
+++ b/commands.h
@@ -72,6 +72,7 @@ extern const char * const generic_cmd_help_usage[];
void usage(const char * const *usagestr) __attribute__((noreturn));
void usage_command(const struct cmd_struct *cmd, int full, int err);
void usage_command_group(const struct cmd_group *grp, int all, int err);
+void usage_command_group_short(const struct cmd_group *grp);
void help_unknown_token(const char *arg, const struct cmd_group *grp) __attribute__((noreturn));
void help_ambiguous_token(const char *arg, const struct cmd_group *grp) __attribute__((noreturn));