summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2017-10-11 17:20:05 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2017-10-13 09:00:06 +0200
commit37b108ec409711584f111a5e79ff7894b2f22846 (patch)
treec1a2856cbd6b833903dfe9223420c4dbb9ee4fb1
parent40151421697db0910c454d1af441cce4962dfb0b (diff)
downloadsssd-37b108ec409711584f111a5e79ff7894b2f22846.tar.gz
sssd-37b108ec409711584f111a5e79ff7894b2f22846.tar.xz
sssd-37b108ec409711584f111a5e79ff7894b2f22846.zip
TOOLS: Hide option --debug in sssctl
Related to old bug https://pagure.io/SSSD/sssd/issue/1224 Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
-rw-r--r--src/tools/common/sss_tools.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/common/sss_tools.c b/src/tools/common/sss_tools.c
index 0b676341f..e491a1286 100644
--- a/src/tools/common/sss_tools.c
+++ b/src/tools/common/sss_tools.c
@@ -32,10 +32,6 @@
static void sss_tool_print_common_opts(int min_len)
{
- fprintf(stderr, _("Common options:\n"));
- fprintf(stderr, " %-*s\t %s\n", min_len, "--debug=INT",
- _("The debug level to run with"));
- fprintf(stderr, "\n");
fprintf(stderr, _("Help options:\n"));
fprintf(stderr, " %-*s\t %s\n", min_len, "-?, --help",
_("Show this for a command"));
@@ -46,7 +42,7 @@ static void sss_tool_print_common_opts(int min_len)
static struct poptOption *sss_tool_common_opts_table(void)
{
static struct poptOption common_opts[] = {
- {"debug", '\0', POPT_ARG_INT, NULL,
+ {"debug", '\0', POPT_ARG_INT | POPT_ARGFLAG_DOC_HIDDEN, NULL,
0, NULL, NULL },
POPT_TABLEEND
};
@@ -380,7 +376,7 @@ errno_t sss_tool_popt_ex(struct sss_cmdline *cmdline,
{NULL, '\0', POPT_ARG_INCLUDE_TABLE, nonnull_popt_table(options), \
0, _("Command options:"), NULL },
{NULL, '\0', POPT_ARG_INCLUDE_TABLE, sss_tool_common_opts_table(), \
- 0, _("Common options:"), NULL },
+ 0, NULL, NULL },
POPT_AUTOHELP
POPT_TABLEEND
};