diff --git a/Pipfile b/Pipfile index 2b50c1a..9f15481 100644 --- a/Pipfile +++ b/Pipfile @@ -4,7 +4,7 @@ url = "https://pypi.org/simple" verify_ssl = true [packages] -cmd2 = ">=0.10.0" +cmd2 = ">=2.0.0" [dev-packages] cmd2-abbrev = {editable = true,path = "."} diff --git a/cmd2_abbrev/abbrev.py b/cmd2_abbrev/abbrev.py index febe376..8c0238f 100644 --- a/cmd2_abbrev/abbrev.py +++ b/cmd2_abbrev/abbrev.py @@ -14,7 +14,7 @@ def __init__(self, *args, **kwargs): # code placed here runs after cmd2 initializes # this is where you register any hook functions self.abbrev = False - self.add_settable(cmd2.Settable('abbrev', bool, 'Accept command abbreviations')) + self.add_settable(cmd2.Settable('abbrev', bool, 'Accept command abbreviations', self)) self.register_postparsing_hook(self.cmd2_abbrev_hook) def cmd2_abbrev_hook(self, data: cmd2.plugin.PostparsingData) -> cmd2.plugin.PostparsingData: