From 12aba72aed310d6d3215684c44849233df7d79d2 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Wed, 24 Jun 2015 09:09:16 -0700 Subject: 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 Signed-off-by: David Sterba --- help.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'help.c') 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) -- cgit v1.2.1