Skip to content

Commit ef8c90a

Browse files
authored
Merge pull request #4 from zegervdv/zegervdv-settables
Make compliant with cmd2 > 0.10.0
2 parents 12143ff + b755150 commit ef8c90a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd2_abbrev/abbrev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, *args, **kwargs):
1313
# code placed here runs after cmd2 initializes
1414
# this is where you register any hook functions
1515
self.abbrev = False
16-
self.settable.update({'abbrev': 'Accept command abbreviations'})
16+
self.add_settable(cmd2.Settable('abbrev', bool, 'Accept command abbreviations'))
1717
self.register_postparsing_hook(self.cmd2_abbrev_hook)
1818

1919
def cmd2_abbrev_hook(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData:

0 commit comments

Comments
 (0)