diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-15 22:49:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-15 22:49:36 -0400 |
commit | 94b424e9c41f99c6eb268c6c97f09e99a8342de8 (patch) | |
tree | bcbf724e20fed985f7d05515a10d28ba32112a68 /examples/table_display.py | |
parent | 8109e70b0442206103fa5fe1a3af79d1851d7ec1 (diff) | |
parent | 3ad59ceffb9810b774a93448328c7c590080cc98 (diff) | |
download | cmd2-git-94b424e9c41f99c6eb268c6c97f09e99a8342de8.tar.gz |
Merge pull request #718 from python-cmd2/auto_completer_refactor
Auto completer refactor
Diffstat (limited to 'examples/table_display.py')
-rwxr-xr-x | examples/table_display.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/table_display.py b/examples/table_display.py index cedd2ca0..a5a5c830 100755 --- a/examples/table_display.py +++ b/examples/table_display.py @@ -142,14 +142,14 @@ def high_density_objs(row_obj: CityInfo) -> dict: return opts -def make_table_parser() -> cmd2.argparse_completer.ACArgumentParser: +def make_table_parser() -> cmd2.ArgParser: """Create a unique instance of an argparse Argument parser for processing table arguments. NOTE: The two cmd2 argparse decorators require that each parser be unique, even if they are essentially a deep copy of each other. For cases like that, you can create a function to return a unique instance of a parser, which is what is being done here. """ - table_parser = cmd2.argparse_completer.ACArgumentParser() + table_parser = cmd2.ArgParser() table_item_group = table_parser.add_mutually_exclusive_group() table_item_group.add_argument('-c', '--color', action='store_true', help='Enable color') table_item_group.add_argument('-f', '--fancy', action='store_true', help='Fancy Grid') |