summaryrefslogtreecommitdiff
path: root/server/tools/sss_groupdel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/sss_groupdel.c')
-rw-r--r--server/tools/sss_groupdel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tools/sss_groupdel.c b/server/tools/sss_groupdel.c
index 5d405b64..8e07febf 100644
--- a/server/tools/sss_groupdel.c
+++ b/server/tools/sss_groupdel.c
@@ -112,6 +112,7 @@ static int groupdel_legacy(struct group_del_ctx *ctx)
int main(int argc, const char **argv)
{
int ret = EXIT_SUCCESS;
+ int pc_debug = 0;
struct group_del_ctx *group_ctx = NULL;
struct tools_ctx *ctx = NULL;
struct sss_domain_info *dom;
@@ -120,6 +121,7 @@ int main(int argc, const char **argv)
poptContext pc = NULL;
struct poptOption long_options[] = {
POPT_AUTOHELP
+ { "debug", '\0', POPT_ARG_INT | POPT_ARGFLAG_DOC_HIDDEN, &pc_debug, 0, "The debug level to run with", NULL },
POPT_TABLEEND
};
@@ -148,6 +150,8 @@ int main(int argc, const char **argv)
goto fini;
}
+ debug_level = pc_debug;
+
group_ctx->groupname = poptGetArg(pc);
if(group_ctx->groupname == NULL) {
usage(pc, "Specify group to delete\n");