Message ID | 20180905214906.11016-2-nicolas.iooss@m4x.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | [1/2] semanage: "semanage user" does not use -s, fix documentation | expand |
ack On Wed, Sep 5, 2018 at 2:53 PM Nicolas Iooss <nicolas.iooss@m4x.org> wrote: > Currently, in: > > # semanage ibendport --help > usage: semanage ibendport [-h] [-n] [-N] [-s STORE] [ --add -t TYPE > -z IBDEV_NAME -r RANGE ( port ) | --delete -z IBDEV_NAME -r RANGE( > port ) | --deleteall | --extract | --list -C | --modify -t TYPE -z > IBDEV_NAME -r RANGE ( port ) ] > > ... a space is missing between "RANGE" and "( port )" in the usage of > --delete. Add it by splitting the string correctly in the usage line > definition. > > Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org> > --- > python/semanage/semanage | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/python/semanage/semanage b/python/semanage/semanage > index e32d1e8ad387..f4be97507c18 100644 > --- a/python/semanage/semanage > +++ b/python/semanage/semanage > @@ -62,7 +62,7 @@ usage_ibpkey = "semanage ibpkey [-h] [-n] [-N] [-s > STORE] [" > usage_ibpkey_dict = {' --add': ('-t TYPE', '-x SUBNET_PREFIX', '-r > RANGE', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --modify': ('-t > TYPE', '-x SUBNET_PREFIX', '-r RANGE', '(', 'ibpkey_name', '|', > 'pkey_range', ')'), ' --delete': ('-x SUBNET_PREFIX', '(', 'ibpkey_name', > '|', 'pkey_range', ')'), ' --list': ('-C',), ' --extract': ('',), ' > --deleteall': ('',)} > > usage_ibendport = "semanage ibendport [-h] [-n] [-N] [-s STORE] [" > -usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r > RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r > RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE''(', > 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': > ('',)} > +usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r > RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r > RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE', '(', > 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': > ('',)} > > usage_node = "semanage node [-h] [-n] [-N] [-S STORE] [" > usage_node_dict = {' --add': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r > RANGE', 'node'), ' --modify': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r > RANGE', 'node'), ' --delete': ('-M NETMASK', '-p PROTOCOL', 'node'), ' > --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} > -- > 2.18.0 > > _______________________________________________ > Selinux mailing list > Selinux@tycho.nsa.gov > To unsubscribe, send email to Selinux-leave@tycho.nsa.gov. > To get help, send an email containing "help" to > Selinux-request@tycho.nsa.gov. > <div dir="ltr">ack</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018 at 2:53 PM Nicolas Iooss <<a href="mailto:nicolas.iooss@m4x.org">nicolas.iooss@m4x.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Currently, in:<br> <br> # semanage ibendport --help<br> usage: semanage ibendport [-h] [-n] [-N] [-s STORE] [ --add -t TYPE<br> -z IBDEV_NAME -r RANGE ( port ) | --delete -z IBDEV_NAME -r RANGE(<br> port ) | --deleteall | --extract | --list -C | --modify -t TYPE -z<br> IBDEV_NAME -r RANGE ( port ) ]<br> <br> ... a space is missing between "RANGE" and "( port )" in the usage of<br> --delete. Add it by splitting the string correctly in the usage line<br> definition.<br> <br> Signed-off-by: Nicolas Iooss <<a href="mailto:nicolas.iooss@m4x.org" target="_blank">nicolas.iooss@m4x.org</a>><br> ---<br> python/semanage/semanage | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br> <br> diff --git a/python/semanage/semanage b/python/semanage/semanage<br> index e32d1e8ad387..f4be97507c18 100644<br> --- a/python/semanage/semanage<br> +++ b/python/semanage/semanage<br> @@ -62,7 +62,7 @@ usage_ibpkey = "semanage ibpkey [-h] [-n] [-N] [-s STORE] ["<br> usage_ibpkey_dict = {' --add': ('-t TYPE', '-x SUBNET_PREFIX', '-r RANGE', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --modify': ('-t TYPE', '-x SUBNET_PREFIX', '-r RANGE', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --delete': ('-x SUBNET_PREFIX', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)}<br> <br> usage_ibendport = "semanage ibendport [-h] [-n] [-N] [-s STORE] ["<br> -usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE''(', 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)}<br> +usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)}<br> <br> usage_node = "semanage node [-h] [-n] [-N] [-S STORE] ["<br> usage_node_dict = {' --add': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --modify': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --delete': ('-M NETMASK', '-p PROTOCOL', 'node'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)}<br> -- <br> 2.18.0<br> <br> _______________________________________________<br> Selinux mailing list<br> <a href="mailto:Selinux@tycho.nsa.gov" target="_blank">Selinux@tycho.nsa.gov</a><br> To unsubscribe, send email to <a href="mailto:Selinux-leave@tycho.nsa.gov" target="_blank">Selinux-leave@tycho.nsa.gov</a>.<br> To get help, send an email containing "help" to <a href="mailto:Selinux-request@tycho.nsa.gov" target="_blank">Selinux-request@tycho.nsa.gov</a>.<br> </blockquote></div>
diff --git a/python/semanage/semanage b/python/semanage/semanage index e32d1e8ad387..f4be97507c18 100644 --- a/python/semanage/semanage +++ b/python/semanage/semanage @@ -62,7 +62,7 @@ usage_ibpkey = "semanage ibpkey [-h] [-n] [-N] [-s STORE] [" usage_ibpkey_dict = {' --add': ('-t TYPE', '-x SUBNET_PREFIX', '-r RANGE', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --modify': ('-t TYPE', '-x SUBNET_PREFIX', '-r RANGE', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --delete': ('-x SUBNET_PREFIX', '(', 'ibpkey_name', '|', 'pkey_range', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} usage_ibendport = "semanage ibendport [-h] [-n] [-N] [-s STORE] [" -usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE''(', 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} +usage_ibendport_dict = {' --add': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --modify': ('-t TYPE', '-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --delete': ('-z IBDEV_NAME', '-r RANGE', '(', 'port', ')'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} usage_node = "semanage node [-h] [-n] [-N] [-S STORE] [" usage_node_dict = {' --add': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --modify': ('-M NETMASK', '-p PROTOCOL', '-t TYPE', '-r RANGE', 'node'), ' --delete': ('-M NETMASK', '-p PROTOCOL', 'node'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)}
Currently, in: # semanage ibendport --help usage: semanage ibendport [-h] [-n] [-N] [-s STORE] [ --add -t TYPE -z IBDEV_NAME -r RANGE ( port ) | --delete -z IBDEV_NAME -r RANGE( port ) | --deleteall | --extract | --list -C | --modify -t TYPE -z IBDEV_NAME -r RANGE ( port ) ] ... a space is missing between "RANGE" and "( port )" in the usage of --delete. Add it by splitting the string correctly in the usage line definition. Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org> --- python/semanage/semanage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)