diff options
author | kmvanbrunt <kmvanbrunt@gmail.com> | 2018-10-12 17:43:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-12 17:43:59 -0400 |
commit | 3dcff6406ff772678d2e003a0fd56c5a64d39e60 (patch) | |
tree | 5ff4f56b0eee7191b6079039eadb722966e8565d /cmd2/parsing.py | |
parent | b216987165d7783903e02db006cf5055f2615796 (diff) | |
parent | 53b976a7aeae88f811391820ca93aaa21b6501e9 (diff) | |
download | cmd2-git-3dcff6406ff772678d2e003a0fd56c5a64d39e60.tar.gz |
Merge pull request #576 from python-cmd2/extra_args
You can now call a macro with extra arguments
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r-- | cmd2/parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/parsing.py b/cmd2/parsing.py index e90eac43..d5c67ae0 100644 --- a/cmd2/parsing.py +++ b/cmd2/parsing.py @@ -55,8 +55,8 @@ class Macro: # The string the macro resolves to value = attr.ib(validator=attr.validators.instance_of(str)) - # The required number of args the user has to pass to this macro - required_arg_count = attr.ib(validator=attr.validators.instance_of(int)) + # The minimum number of args the user has to pass to this macro + minimum_arg_count = attr.ib(validator=attr.validators.instance_of(int)) # Used to fill in argument placeholders in the macro arg_list = attr.ib(default=attr.Factory(list), validator=attr.validators.instance_of(list)) |