summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2015-06-24 09:09:16 -0700
committerDavid Sterba <dsterba@suse.cz>2015-06-26 16:33:38 +0200
commit12aba72aed310d6d3215684c44849233df7d79d2 (patch)
tree3bc2bc9a9d2c48d7637b3485c8b1b7399db8ba45 /help.c
parentd26edf000c83f48a7aaa05ff24e6ebad9a76bd5d (diff)
btrfs-progs: replace struct cmd_group->hidden with flags
We're also going to want to support aliases, so rather than adding another member, replace "hidden" with a "flags" member. Signed-off-by: Omar Sandoval <osandov@fb.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'help.c')
-rw-r--r--help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/help.c b/help.c
index a67e3fd..e57d9f2 100644
--- a/help.c
+++ b/help.c
@@ -131,7 +131,7 @@ static void usage_command_group_internal(const struct cmd_group *grp, int full,
int do_sep = 0;
for (; cmd->token; cmd++) {
- if (cmd->hidden)
+ if (cmd->flags & CMD_HIDDEN)
continue;
if (full && cmd != grp->commands)
@@ -176,7 +176,7 @@ void usage_command_group_short(const struct cmd_group *grp)
fprintf(outf, "Command groups:\n");
for (cmd = grp->commands; cmd->token; cmd++) {
- if (cmd->hidden)
+ if (cmd->flags & CMD_HIDDEN)
continue;
if (!cmd->next)
@@ -187,7 +187,7 @@ void usage_command_group_short(const struct cmd_group *grp)
fprintf(outf, "\nCommands:\n");
for (cmd = grp->commands; cmd->token; cmd++) {
- if (cmd->hidden)
+ if (cmd->flags & CMD_HIDDEN)
continue;
if (cmd->next)