diff options
author | Eric Lin <anselor@gmail.com> | 2020-07-24 12:21:43 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-04 13:38:08 -0400 |
commit | 06cee9126839c465a356f8b44a5f008853eb8cad (patch) | |
tree | 88de1a9f07f20fb6a7e1a8f77b1c48fb41382d19 /examples/modular_commands_main.py | |
parent | 787a31931ed4c4a18ae66a570d396b12b2b7b525 (diff) | |
download | cmd2-git-06cee9126839c465a356f8b44a5f008853eb8cad.tar.gz |
updated imports
Added additional documentation
Diffstat (limited to 'examples/modular_commands_main.py')
-rw-r--r-- | examples/modular_commands_main.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/modular_commands_main.py b/examples/modular_commands_main.py index fd10d8d3..b698e00f 100644 --- a/examples/modular_commands_main.py +++ b/examples/modular_commands_main.py @@ -1,7 +1,8 @@ #!/usr/bin/env python # coding=utf-8 """ -A simple example demonstrating how to integrate tab completion with argparse-based commands. +A complex example demonstrating a variety of methods to load CommandSets using a mix of command decorators +with examples of how to integrate tab completion with argparse-based commands. """ import argparse from typing import Dict, Iterable, List, Optional @@ -9,8 +10,8 @@ from typing import Dict, Iterable, List, Optional from cmd2 import Cmd, Cmd2ArgumentParser, CommandSet, CompletionItem, with_argparser from cmd2.utils import CompletionError, basic_complete from modular_commands.commandset_basic import BasicCompletionCommandSet # noqa: F401 -from modular_commands.commandset_custominit import CustomInitCommandSet # noqa: F401 from modular_commands.commandset_complex import CommandSetA # noqa: F401 +from modular_commands.commandset_custominit import CustomInitCommandSet # noqa: F401 # Data source for argparse.choices food_item_strs = ['Pizza', 'Ham', 'Ham Sandwich', 'Potato'] |