diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-14 12:09:38 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-09-14 12:09:38 -0400 |
commit | 3faf5b47a05df027e31fde6a0f53f13f960cbc64 (patch) | |
tree | 71173cd751c2ce771a9cfff6c294595ede80cd81 /examples | |
parent | cd4f71809f9ed0337026940e5dad00a5d264afd7 (diff) | |
download | cmd2-git-3faf5b47a05df027e31fde6a0f53f13f960cbc64.tar.gz |
Added a command which does nothing and produces no output to alias_startup.py example
This is just for some manual edge cases testing.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/alias_startup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/alias_startup.py b/examples/alias_startup.py index 4ae91661..8a289e79 100755 --- a/examples/alias_startup.py +++ b/examples/alias_startup.py @@ -14,6 +14,10 @@ class AliasAndStartup(cmd2.Cmd): alias_script = os.path.join(os.path.dirname(__file__), '.cmd2rc') super().__init__(startup_script=alias_script) + def do_nothing(self, args): + """This command does nothing and produces no output.""" + pass + if __name__ == '__main__': app = AliasAndStartup() |