summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-16 14:15:52 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-06-16 14:15:52 -0400
commit1a06288b654422e010250c9b184118cc9ca82cae (patch)
tree1a22fba99569bdbb8f4c5c06720f88b0ce4c164b /cmd2.py
parent89f58e23ad5f4db5f3d58a526ba5df5a199516c9 (diff)
downloadcmd2-git-1a06288b654422e010250c9b184118cc9ca82cae.tar.gz
Reword output for cmdenvironment
This is an attempt at making the cmdenvironment output more informative and easier to understand.
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd2.py b/cmd2.py
index a5319327..828e4f7c 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1136,14 +1136,16 @@ class Cmd(cmd.Cmd):
self.stdout.write("""
Commands are case-sensitive: {}
Commands may be terminated with: {}
- Command-line arguments allowed: {}
+ Arguments at invocation allowed: {}
Output redirection and pipes allowed: {}
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: {}
+ Shell lexer mode for command argument splitting: {}
+ Strip Quotes after splitting arguments: {}
+ Argument type: {}
\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))
+ "POSIX" if POSIX_SHLEX else "non-POSIX",
+ "True" if STRIP_QUOTES_FOR_NON_POSIX and not POSIX_SHLEX else "False",
+ "List of argument strings" if USE_ARG_LIST else "string of space-separated arguments"))
def do_help(self, arg):
"""List available commands with "help" or detailed help with "help cmd"."""