From c5389c7c456cfdf4c948ecfbcdc61a1ee3f0033b Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Wed, 5 Sep 2018 22:24:11 +0200 Subject: [PATCH] semanage: add a missing space in ibendport help 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 --- python/semanage/semanage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/semanage/semanage b/python/semanage/semanage index e32d1e8a..f4be9750 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': ('',)}