Merge pull request #290 from jamincollins/master

add parsing support for advertised force long opt
This commit is contained in:
Serge Hallyn 2020-11-08 16:29:29 -06:00 committed by GitHub
commit bd32c1c8fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -91,6 +91,17 @@
are:
</para>
<variablelist remap='IP'>
<varlistentry>
<term>
<option>-f</option>, <option>--force</option>
</term>
<listitem>
<para>
This option forces the removal of the group, even if there's some user
having the group as the primary one.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-h</option>, <option>--help</option></term>
<listitem>

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