We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 12143ff + b755150 commit ef8c90aCopy full SHA for ef8c90a
cmd2_abbrev/abbrev.py
@@ -13,7 +13,7 @@ def __init__(self, *args, **kwargs):
13
# code placed here runs after cmd2 initializes
14
# this is where you register any hook functions
15
self.abbrev = False
16
- self.settable.update({'abbrev': 'Accept command abbreviations'})
+ self.add_settable(cmd2.Settable('abbrev', bool, 'Accept command abbreviations'))
17
self.register_postparsing_hook(self.cmd2_abbrev_hook)
18
19
def cmd2_abbrev_hook(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData:
0 commit comments