Skip to content

Commit b755150

Browse files
zegervdvZeger Van de Vannet
authored andcommitted
Make compliant with cmd2 > 0.10.0
1 parent 12143ff commit b755150

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)