summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-03 12:02:56 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-03 12:02:56 -0400
commitb70b85067450b529a19a5a4bdbc8646c88f4e342 (patch)
tree78fbd51ee75d14e0963b712f843d473481611fff /cmd2.py
parent909c3041790d895e1ff2319ca2eb53c34b2860fb (diff)
downloadcmd2-git-b70b85067450b529a19a5a4bdbc8646c88f4e342.tar.gz
Updated cmdenvironment command
It no longer displays settable parameters since this functionality was redundant since those are displayed with either set or show. It now shows additional global settings for parsing @options commands. In the future a few more things should probably be displayed here related to parameters which are not settable at runtime.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index 93f0152c..3755ef56 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1121,9 +1121,12 @@ class Cmd(cmd.Cmd):
Commands may be terminated with: {}
Command-line arguments allowed: {}
Output redirection and pipes allowed: {}
- Settable parameters: {}\n""".format(not self.case_insensitive, str(self.terminators),
- self.allow_cli_args,
- self.allow_redirection, ' '.join(self.settable)))
+ Parsing of @options commands:
+ Use POSIX-style argument parser (vs Windows): {}
+ Strip Quotes when using Windows-style argument parser: {}
+ Use a list of arguments instead of a single argument string: {}
+ \n""".format(not self.case_insensitive, str(self.terminators), self.allow_cli_args, self.allow_redirection,
+ POSIX_SHLEX, STRIP_QUOTES_FOR_NON_POSIX, USE_ARG_LIST))
def do_help(self, arg):
"""List available commands with "help" or detailed help with "help cmd"."""