diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-01-04 16:38:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-04 16:38:30 -0500 |
commit | 3a0c873fad8d557434b514ab1dbfdafaa1e90be9 (patch) | |
tree | 6b105af314c13057b2a60be569386fe3fbf68f9a | |
parent | 542fa15a1525b2f1db13fcbb6bb5b3dc96959482 (diff) | |
parent | cff7b8fecf29fe3ef92552bc192d4bafdf6ff37e (diff) | |
download | cmd2-git-3a0c873fad8d557434b514ab1dbfdafaa1e90be9.tar.gz |
Merge pull request #616 from igorzakhar/fix/readme-examples
Added blank lines between code blocks in code examples
-rwxr-xr-x | README.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -132,6 +132,7 @@ Instructions for implementing each feature follow. argparser.add_argument('-p', '--piglatin', action='store_true', help='atinLay') argparser.add_argument('-s', '--shout', action='store_true', help='N00B EMULATION MODE') argparser.add_argument('words', nargs='+', help='words to say') + @with_argparser(argparser) def do_speak(self, args): """Repeats what you tell me to.""" @@ -253,6 +254,7 @@ class CmdLineApp(cmd2.Cmd): speak_parser.add_argument('-s', '--shout', action='store_true', help='N00B EMULATION MODE') speak_parser.add_argument('-r', '--repeat', type=int, help='output [n] times') speak_parser.add_argument('words', nargs='+', help='words to say') + @cmd2.with_argparser(speak_parser) def do_speak(self, args): """Repeats what you tell me to.""" @@ -274,6 +276,7 @@ class CmdLineApp(cmd2.Cmd): mumble_parser = argparse.ArgumentParser() mumble_parser.add_argument('-r', '--repeat', type=int, help='how many times to repeat') mumble_parser.add_argument('words', nargs='+', help='words to say') + @cmd2.with_argparser(mumble_parser) def do_mumble(self, args): """Mumbles what you tell me to.""" |