From: Jamin W. Collins Date: Sat, 17 Oct 2020 16:18:30 +0000 (-0700) Subject: add parsing support for advertised force long opt X-Git-Tag: v4.9~48^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd4dc81a82f21f699404f0834e30bef530c57528;p=thirdparty%2Fshadow.git 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 --- diff --git a/src/groupdel.c b/src/groupdel.c index f941a84ad..6a6c53390 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'}