summaryrefslogtreecommitdiff
path: root/examples/argparse_example.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-03-13 21:40:56 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-03-13 21:40:56 -0400
commit8c1e01886853471d8dadd473f491f310937b01d0 (patch)
treef41bf6a8699495575640d0d8fda37d45d0e4d056 /examples/argparse_example.py
parent8b0505c5ccdc7516572afe1426d82666f97232af (diff)
downloadcmd2-git-8c1e01886853471d8dadd473f491f310937b01d0.tar.gz
Mostly fix a bunch of spelling mistakes.
A few other miscellaneous minor tweaks for whitespace and such.
Diffstat (limited to 'examples/argparse_example.py')
-rwxr-xr-xexamples/argparse_example.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/argparse_example.py b/examples/argparse_example.py
index 8f833578..c6cc819b 100755
--- a/examples/argparse_example.py
+++ b/examples/argparse_example.py
@@ -3,7 +3,7 @@
"""A sample application for cmd2 showing how to use Argparse to process command line arguments for your application.
It doubles as an example of how you can still do transcript testing even if allow_cli_args is false.
-Thanks to cmd2's built-in transtript testing capability, it also serves as a test suite for argparse_example.py when
+Thanks to cmd2's built-in transcript testing capability, it also serves as a test suite for argparse_example.py when
used with the exampleSession.txt transcript.
Running `python argparse_example.py -t exampleSession.txt` will run all the commands in the transcript against
@@ -77,11 +77,11 @@ if __name__ == '__main__':
if args.ip:
ip_addr = args.ip
- transcript = None
+ transcripts = None
if args.test:
transcripts = [args.test]
- # Instantiate your cmd2 applicaiton
+ # Instantiate your cmd2 application
c = CmdLineApp(transcript_files=transcripts)
# And run your cmd2 application