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 <jamin.collins@gmail.com>
This commit is contained in:
Jamin W. Collins 2020-10-17 09:18:30 -07:00
parent f8642a1986
commit bd4dc81a82

View File

@ -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'}