summaryrefslogtreecommitdiffstats
path: root/src/tools/sss_groupadd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/sss_groupadd.c')
-rw-r--r--src/tools/sss_groupadd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/sss_groupadd.c b/src/tools/sss_groupadd.c
index e5ef7218b..8817625d5 100644
--- a/src/tools/sss_groupadd.c
+++ b/src/tools/sss_groupadd.c
@@ -62,9 +62,7 @@ int main(int argc, const char **argv)
pc = poptGetContext(NULL, argc, argv, long_options, 0);
poptSetOtherOptionHelp(pc, "GROUPNAME");
if ((ret = poptGetNextOpt(pc)) < -1) {
- usage(pc, poptStrerror(ret));
- ret = EXIT_FAILURE;
- goto fini;
+ BAD_POPT_PARAMS(pc, poptStrerror(ret), ret, fini);
}
debug_level = pc_debug;
@@ -72,9 +70,7 @@ int main(int argc, const char **argv)
/* groupname is an argument, not option */
pc_groupname = poptGetArg(pc);
if (pc_groupname == NULL) {
- usage(pc, _("Specify group to add\n"));
- ret = EXIT_FAILURE;
- goto fini;
+ BAD_POPT_PARAMS(pc, _("Specify group to add\n"), ret, fini);
}
CHECK_ROOT(ret, debug_prg_name);