commit ab1501ab5294669cbb290957f7e6ff75df945f4e
parent 72b05a413f1a6a70699d5eb69a5dfe3b31b521b2
Author: Isak Lindhé <isak.e.lindhe@gmail.com>
Date: Wed, 20 Mar 2019 15:49:44 +0100
interactive-only notice in help text
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/txtv/txtv.py b/txtv/txtv.py
@@ -106,7 +106,7 @@ def cmd_help(**kwargs):
else:
name = cmd['pattern']
name = re.sub(r'\|', r' | ', name)
- print('{} -- {}'.format(name, cmd['help']))
+ print('{} -- {}{}'.format(name, cmd['help'], ' (only in interactive mode)' if 'interactive_only' in cmd and cmd['interactive_only'] else ''))
def cmd_next(state, **kwargs):