From bd4dc81a82f21f699404f0834e30bef530c57528 Mon Sep 17 00:00:00 2001 From: "Jamin W. Collins" Date: Sat, 17 Oct 2020 09:18:30 -0700 Subject: [PATCH] add parsing support for advertised force long opt Existing help output advertises --force as a long opt. -f, --force delete group even if it is the primary group of a user But errors when the long opt is used. groupdel: unrecognized option '--force' Signed-off-by: Jamin W. Collins --- src/groupdel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/groupdel.c b/src/groupdel.c index f941a84a..6a6c5339 100644 --- a/src/groupdel.c +++ b/src/groupdel.c @@ -323,6 +323,7 @@ static void process_flags (int argc, char **argv) int c; static struct option long_options[] = { {"help", no_argument, NULL, 'h'}, + {"force", no_argument, NULL, 'f'}, {"root", required_argument, NULL, 'R'}, {"prefix", required_argument, NULL, 'P'}, {NULL, 0, NULL, '\0'}