summaryrefslogtreecommitdiff
path: root/cmd2/parsing.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-12 13:26:27 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-10-12 13:26:27 -0400
commit53b976a7aeae88f811391820ca93aaa21b6501e9 (patch)
tree5ff4f56b0eee7191b6079039eadb722966e8565d /cmd2/parsing.py
parentb216987165d7783903e02db006cf5055f2615796 (diff)
downloadcmd2-git-53b976a7aeae88f811391820ca93aaa21b6501e9.tar.gz
You can now call a macro with extra arguments
Diffstat (limited to 'cmd2/parsing.py')
-rw-r--r--cmd2/parsing.py4
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))