summaryrefslogtreecommitdiff
path: root/examples/custom_parser.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-25 16:54:47 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-09-01 13:33:22 -0400
commitbf558c5c774685c5806e38d349ab2e129b76ef6b (patch)
tree8f6c1df1c9c22a5129a3de0f36e3bd5e5d511b26 /examples/custom_parser.py
parent30b30cd48d2b3ac1e886e1e0bb868dc823414bef (diff)
downloadcmd2-git-bf558c5c774685c5806e38d349ab2e129b76ef6b.tar.gz
Refactored custom ArgparseCompleter functionality so they will now be set using methods on ArgumentParser objects.
This fixes issue where subcommands did not use the correct custom ArgparseCompleter type.
Diffstat (limited to 'examples/custom_parser.py')
-rw-r--r--examples/custom_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_parser.py b/examples/custom_parser.py
index ea66e7e1..6e5a33b4 100644
--- a/examples/custom_parser.py
+++ b/examples/custom_parser.py
@@ -7,7 +7,7 @@ import sys
from cmd2 import (
Cmd2ArgumentParser,
ansi,
- set_default_argument_parser,
+ set_default_argument_parser_type,
)
@@ -38,4 +38,4 @@ class CustomParser(Cmd2ArgumentParser):
# Now set the default parser for a cmd2 app
-set_default_argument_parser(CustomParser)
+set_default_argument_parser_type(CustomParser)