diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-03 12:02:56 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-03 12:02:56 -0400 |
commit | b70b85067450b529a19a5a4bdbc8646c88f4e342 (patch) | |
tree | 78fbd51ee75d14e0963b712f843d473481611fff /cmd2.py | |
parent | 909c3041790d895e1ff2319ca2eb53c34b2860fb (diff) | |
download | cmd2-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-x | cmd2.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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".""" |