diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-03-06 19:52:44 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-03-06 20:04:38 +0100 |
commit | 8c2a215340c181a2c5abec9aa67afc0e1e26df04 (patch) | |
tree | 67651050a09f45df269e5e2247ca60f597158472 /command.py | |
parent | 7269bb0e809d9b517b7e47b9da109ea827f7dae0 (diff) | |
download | clufter-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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |