summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-06-08 20:29:41 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-06-19 17:32:12 +0200
commit78ea9035c1eb597187b75403be86eba4a52273ab (patch)
tree1912d8871ebcb76d6eeacef690bb5f020e56dff3 /main.py
parent14359462509604190080014dc1ee7bdb627ac788 (diff)
downloadclufter-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.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.py b/main.py
index ea0a677..4b8cd4c 100644
--- a/main.py
+++ b/main.py
@@ -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 []))