diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-01 21:31:47 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-06-01 21:31:47 -0400 |
commit | 36fdee77642604186c10499ce0042ff347539d48 (patch) | |
tree | be58d82ca46aa330817e541737e004af072b5c06 /cmd2.py | |
parent | 67c70521d6520c3cb2906ec428de4ccc6958d784 (diff) | |
download | cmd2-git-36fdee77642604186c10499ce0042ff347539d48.tar.gz |
Made a few minor clarifying comment tweaks
Diffstat (limited to 'cmd2.py')
-rwxr-xr-x | cmd2.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1181,7 +1181,7 @@ class Cmd(cmd.Cmd): # noinspection PyUnusedLocal def do_shortcuts(self, args): - """Lists single-key shortcuts available.""" + """Lists shortcuts (aliases) available.""" result = "\n".join('%s: %s' % (sc[0], sc[1]) for sc in sorted(self.shortcuts)) self.stdout.write("Single-key shortcuts for other commands:\n{}\n".format(result)) @@ -1509,7 +1509,7 @@ class Cmd(cmd.Cmd): py: Enters interactive Python mode. End with ``Ctrl-D`` (Unix) / ``Ctrl-Z`` (Windows), ``quit()``, '`exit()``. Non-python commands can be issued with ``cmd("your command")``. - Run python code from external files with ``run("filename.py")`` + Run python code from external script files with ``run("filename.py")`` """ if self._in_py: self.perror("Recursively entering interactive Python consoles is not allowed.", traceback_war=False) @@ -1802,7 +1802,7 @@ Edited files are run on close if the `autorun_on_edit` settable parameter is Tru def do__relative_load(self, arg=None): """Runs commands in script at file or URL. - Usage: load [file_path] + Usage: _relative_load [file_path] optional argument: file_path a file path or URL pointing to a script @@ -1812,6 +1812,8 @@ Script should contain one command per line, just like command would be typed in If this is called from within an already-running script, the filename will be interpreted relative to the already-running script's directory. + +NOTE: This command is intended to only be used within text file scripts. """ if arg: arg = arg.split(None, 1) |