diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-11-11 12:03:38 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-11-11 12:03:38 -0500 |
commit | dbc9f819182b26d0ae68f55e24467411d5711290 (patch) | |
tree | beb1a79dc1a5f4863182f61c38859fa59619c933 /examples/example.py | |
parent | af06c06a5e580c92cf934f110c9e88ec75cde235 (diff) | |
download | cmd2-git-dbc9f819182b26d0ae68f55e24467411d5711290.tar.gz |
Made a couple fixes to existing examples
Changes include:
- argparse_example.py modified to do pass all unknown args onto cmd2 and allow arguments at invocation
- example.py comments modified to indicate it is intended to be used with transcript_regext.txt
- exampleSession.txt fixed so it works properly with argparse_example.py
Diffstat (limited to 'examples/example.py')
-rwxr-xr-x | examples/example.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py index e4158f13..889e62c0 100755 --- a/examples/example.py +++ b/examples/example.py @@ -4,9 +4,9 @@ A sample application for cmd2. Thanks to cmd2's built-in transcript testing capability, it also serves as a -test suite for example.py when used with the exampleSession.txt transcript. +test suite for example.py when used with the transcript_regex.txt transcript. -Running `python example.py -t exampleSession.txt` will run all the commands in +Running `python example.py -t transcript_regex.txt` will run all the commands in the transcript against example.py, verifying that the output produced matches the transcript. """ |