policycoreutils/semodule: Fix the documentation of -l,--list

It wasn't clear how to use -l option with full/standard KIND and the
example in semodule.8 man page was wrong.

Based on a patch by Laurent Bigonville <bigon@bigon.be>
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
Petr Lautrbach 2016-05-24 10:02:29 +02:00 committed by James Carter
parent 3749315847
commit 9676142888
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ deprecated, alias for --install
.B \-r,\-\-remove=MODULE_NAME
remove existing module
.TP
.B \-l,\-\-list-modules=[KIND]
.B \-l[KIND],\-\-list-modules[=KIND]
display list of installed modules (other than base)
.TP
.B \-E,\-\-extract=MODULE_PKG
@ -116,7 +116,7 @@ $ semodule \-d alsa
# Install a module at a specific priority.
$ semodule \-X 100 \-i alsa.pp
# List all modules.
$ semodule \-l full
$ semodule \-\-list=full
# Set an alternate path for the policy root
$ semodule \-B \-p "/tmp"
# Set an alternate path for the policy store root

View File

@ -127,7 +127,7 @@ static void usage(char *progname)
printf(" -B, --build build and reload policy\n");
printf(" -i,--install=MODULE_PKG install a new module\n");
printf(" -r,--remove=MODULE_NAME remove existing module\n");
printf(" -l,--list-modules=[KIND] display list of installed modules\n");
printf(" -l[KIND],--list-modules[=KIND] display list of installed modules\n");
printf(" KIND: standard list highest priority, enabled modules\n");
printf(" full list all modules\n");
printf(" -X,--priority=PRIORITY set priority for following operations (1-999)\n");