diff options
author | Eric Lin <anselor@gmail.com> | 2020-08-12 14:51:10 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-12 17:41:20 -0400 |
commit | 133e71a5a3074fc21fa52532d00c4d2364964cd3 (patch) | |
tree | dad6b15a042e0b41ee1c9b0e622513cabd8b325e /cmd2/command_definition.py | |
parent | 774fb39d7e259d0679c573b0d893293f9ed9aed9 (diff) | |
download | cmd2-git-133e71a5a3074fc21fa52532d00c4d2364964cd3.tar.gz |
When passing a ns_provider to an argparse command, will now attempt to resolve the correct CommandSet instance for self. If not, it'll fall back and pass in the cmd2 app
Diffstat (limited to 'cmd2/command_definition.py')
-rw-r--r-- | cmd2/command_definition.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd2/command_definition.py b/cmd2/command_definition.py index 86f1151a..27a044bc 100644 --- a/cmd2/command_definition.py +++ b/cmd2/command_definition.py @@ -2,8 +2,7 @@ """ Supports the definition of commands in separate classes to be composed into cmd2.Cmd """ -import functools -from typing import Callable, Iterable, Optional, Type +from typing import Optional, Type from .constants import COMMAND_FUNC_PREFIX from .exceptions import CommandSetRegistrationError |