diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-26 02:53:13 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-26 02:53:13 -0400 |
commit | 341873618852bca9e3d803ee8e704c04cbba831e (patch) | |
tree | 22959c66e97b0ab97e3be7b8047d104c72b0d04c /docs | |
parent | e0b289b940cd18adab173f65f0413a9575525860 (diff) | |
download | cmd2-git-341873618852bca9e3d803ee8e704c04cbba831e.tar.gz |
First steps in converting all commands to argparse
Diffstat (limited to 'docs')
-rw-r--r-- | docs/freefeatures.rst | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/docs/freefeatures.rst b/docs/freefeatures.rst index a03a1d08..0a95a829 100644 --- a/docs/freefeatures.rst +++ b/docs/freefeatures.rst @@ -174,13 +174,9 @@ More Python examples: Type "help", "copyright", "credits" or "license" for more information. (CmdLineApp) - Invoke python command, shell, or script - - py <command>: Executes a Python command. - py: Enters interactive Python mode. - End with ``Ctrl-D`` (Unix) / ``Ctrl-Z`` (Windows), ``quit()``, '`exit()``. - Non-python commands can be issued with ``app("your command")``. - Run python code from external script files with ``run("script.py")`` + End with `Ctrl-D` (Unix) / `Ctrl-Z` (Windows), `quit()`, `exit()`. + Non-python commands can be issued with: app("your command") + Run python code from external script files with: run("script.py") >>> import os >>> os.uname() |