summaryrefslogtreecommitdiff
path: root/examples/override_parser.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2021-01-05 11:29:39 -0500
committerEric Lin <anselor@gmail.com>2021-01-21 10:24:08 -0500
commitf1f76a4ba207d802f78277d0ba3defa44cf7b973 (patch)
tree0a59103b35e9160aed2466fdafa0f8020c426bcc /examples/override_parser.py
parente0dee46ca871e56523059b1566577ff781f6fb63 (diff)
downloadcmd2-git-import_wrapping.tar.gz
Changed isort to force wrapping of imports to reduce merge conflicts from minor import changes.import_wrapping
Diffstat (limited to 'examples/override_parser.py')
-rwxr-xr-xexamples/override_parser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/override_parser.py b/examples/override_parser.py
index b6548388..b723f6d7 100755
--- a/examples/override_parser.py
+++ b/examples/override_parser.py
@@ -13,7 +13,9 @@ import argparse
# Next import stuff from cmd2. It will import your module just before the cmd2.Cmd class file is imported
# and therefore override the parser class it uses on its commands.
-from cmd2 import cmd2
+from cmd2 import (
+ cmd2,
+)
argparse.cmd2_parser_module = 'examples.custom_parser'