summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-03-06 19:52:44 +0100
committerJan Pokorný <jpokorny@redhat.com>2014-03-06 20:04:38 +0100
commit8c2a215340c181a2c5abec9aa67afc0e1e26df04 (patch)
tree67651050a09f45df269e5e2247ca60f597158472 /command.py
parent7269bb0e809d9b517b7e47b9da109ea827f7dae0 (diff)
downloadclufter-8c2a215340c181a2c5abec9aa67afc0e1e26df04.tar.gz
clufter-8c2a215340c181a2c5abec9aa67afc0e1e26df04.tar.xz
clufter-8c2a215340c181a2c5abec9aa67afc0e1e26df04.zip
command: apply cli_decor also to per-command cmdline options
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command.py b/command.py
index 7210d6b..718d15e 100644
--- a/command.py
+++ b/command.py
@@ -22,6 +22,7 @@ from .utils import any2iter, \
apply_intercalate, \
apply_loose_zip_preserving_depth, \
bifilter, \
+ cli_decor, \
func_defaults_varnames, \
head_tail, \
hybridproperty, \
@@ -197,7 +198,7 @@ class Command(object):
else:
opt['help'] += " [%default]"
opt['default'] = default
- options.append([["--" + optname], opt])
+ options.append([["--" + cli_decor(optname)], opt])
elif line.lower().startswith('options:'):
readopts = True
else: