diff options
| author | Eric Lin <anselor@gmail.com> | 2018-05-02 14:13:12 -0400 |
|---|---|---|
| committer | Eric Lin <anselor@gmail.com> | 2018-05-02 14:13:12 -0400 |
| commit | 148f05d0af66f38c8ba6ca3a5619f50a8bb1b8a9 (patch) | |
| tree | 10513021d2932b205375e444c2f51a104cebbbc1 /examples | |
| parent | 8d8db3f31b40c39cae43ec3d2bda0ea0c258b3db (diff) | |
| download | cmd2-git-148f05d0af66f38c8ba6ca3a5619f50a8bb1b8a9.tar.gz | |
Addressed comments.
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/alias_startup.py | 4 | ||||
| -rwxr-xr-x | examples/help_categories.py | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/examples/alias_startup.py b/examples/alias_startup.py index a02972b6..7ccfa6e5 100755 --- a/examples/alias_startup.py +++ b/examples/alias_startup.py @@ -4,12 +4,8 @@ 1) How to add custom command aliases using the alias command 2) How to load an initialization script at startup """ -import argparse from cmd2 import cmd2 -import pyparsing - -from cmd2.cmd2 import with_argument_list, with_argparser, with_argparser_and_unknown_args class AliasAndStartup(cmd2.Cmd): diff --git a/examples/help_categories.py b/examples/help_categories.py index 7adedb51..dcfbd31f 100755 --- a/examples/help_categories.py +++ b/examples/help_categories.py @@ -4,9 +4,10 @@ A sample application for tagging categories on commands. """ -from cmd2.cmd2 import Cmd, categorize, __version__, with_argparser, with_category import argparse +from cmd2.cmd2 import Cmd, categorize, __version__, with_argparser, with_category + class HelpCategories(Cmd): """ Example cmd2 application. """ |
