Make all metavars uppercased
This commit is contained in:
parent
e58aa8f62d
commit
99e531ec0e
|
@ -47,7 +47,7 @@ def get_argparser(ArgumentParser=ConfigArgParser):
|
||||||
tmux_parser.add_argument(
|
tmux_parser.add_argument(
|
||||||
'function',
|
'function',
|
||||||
choices=tuple(TMUX_ACTIONS.values()),
|
choices=tuple(TMUX_ACTIONS.values()),
|
||||||
metavar='action',
|
metavar='ACTION',
|
||||||
type=(lambda v: TMUX_ACTIONS.get(v)),
|
type=(lambda v: TMUX_ACTIONS.get(v)),
|
||||||
help='If action is `source\' then version-specific tmux configuration files are sourced.'
|
help='If action is `source\' then version-specific tmux configuration files are sourced.'
|
||||||
)
|
)
|
||||||
|
@ -57,14 +57,14 @@ def get_argparser(ArgumentParser=ConfigArgParser):
|
||||||
'function',
|
'function',
|
||||||
choices=tuple(SHELL_ACTIONS.values()),
|
choices=tuple(SHELL_ACTIONS.values()),
|
||||||
type=(lambda v: SHELL_ACTIONS.get(v)),
|
type=(lambda v: SHELL_ACTIONS.get(v)),
|
||||||
metavar='action',
|
metavar='ACTION',
|
||||||
help='If action is `command\' then preferred powerline command is output, if it is `uses\' then powerline-config script will exit with 1 if specified component is disabled and 0 otherwise.',
|
help='If action is `command\' then preferred powerline command is output, if it is `uses\' then powerline-config script will exit with 1 if specified component is disabled and 0 otherwise.',
|
||||||
)
|
)
|
||||||
shell_parser.add_argument(
|
shell_parser.add_argument(
|
||||||
'component',
|
'component',
|
||||||
nargs='?',
|
nargs='?',
|
||||||
choices=('tmux', 'prompt'),
|
choices=('tmux', 'prompt'),
|
||||||
metavar='component',
|
metavar='COMPONENT',
|
||||||
)
|
)
|
||||||
shell_parser.add_argument(
|
shell_parser.add_argument(
|
||||||
'-s', '--shell',
|
'-s', '--shell',
|
||||||
|
|
Loading…
Reference in New Issue