diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-06-08 20:29:41 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-06-19 17:32:12 +0200 |
commit | 78ea9035c1eb597187b75403be86eba4a52273ab (patch) | |
tree | 1912d8871ebcb76d6eeacef690bb5f020e56dff3 /main.py | |
parent | 14359462509604190080014dc1ee7bdb627ac788 (diff) | |
download | clufter-78ea9035c1eb597187b75403be86eba4a52273ab.tar.gz clufter-78ea9035c1eb597187b75403be86eba4a52273ab.tar.xz clufter-78ea9035c1eb597187b75403be86eba4a52273ab.zip |
main: prepend "(expert) " to options of that sort
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -189,6 +189,8 @@ class SharedHelpFormatter(IndentedHelpFormatter): def expand_default(self, option): ret = IndentedHelpFormatter.expand_default(self, option) + if isinstance(option, ExpertOption): + ret = "(expert) " + ret return ret.replace(self.choices_tag, ', '.join(option.choices or [])) |