summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-07-29 17:59:47 -0400
committeranselor <anselor@gmail.com>2020-08-04 13:38:08 -0400
commit105369bdd15c2067b3ee6bdd6a737733a34c38ef (patch)
tree6358e7923d35d491998d263a93fdbdd8f1e8c256 /cmd2/argparse_custom.py
parent8d0b162cf5712c26947f1e0bbc2b1021cb71e366 (diff)
downloadcmd2-git-105369bdd15c2067b3ee6bdd6a737733a34c38ef.tar.gz
Suggested PR Fixes.
sub-commande => subcommand Added help/aliases to `as_subcommand_to` decorator.
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 689c1db7..9dde5347 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -774,7 +774,7 @@ class Cmd2ArgumentParser(argparse.ArgumentParser):
allow_abbrev=allow_abbrev)
self.register('action', 'unloadable_parsers', _UnloadableSubParsersAction)
- def add_subparsers(self, unloadable=False, **kwargs):
+ def add_subparsers(self, unloadable: bool = False, **kwargs):
"""
Custom override. Sets a default title if one was not given.