summaryrefslogtreecommitdiffstats
path: root/src/cli/cmd_help.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/cli/cmd_help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/cmd_help.c b/src/cli/cmd_help.c
index 7ee9822..5e877e0 100644
--- a/src/cli/cmd_help.c
+++ b/src/cli/cmd_help.c
@@ -7,7 +7,7 @@
#include <stdio.h>
#include <git2.h>
-#include "cli.h"
+#include "common.h"
#include "cmd.h"
#define COMMAND_NAME "help"
@@ -16,8 +16,8 @@ static char *command;
static int show_help;
static const cli_opt_spec opts[] = {
- { CLI_OPT_TYPE_SWITCH, "help", 0, &show_help, 1,
- CLI_OPT_USAGE_HIDDEN, NULL, "display help about the help command" },
+ CLI_COMMON_OPT,
+
{ CLI_OPT_TYPE_ARG, "command", 0, &command, 0,
CLI_OPT_USAGE_DEFAULT, "command", "the command to show help for" },
{ 0 },