Lines Matching refs:argcount
62 if type(e) is Argument or type(e) is Option and e.argcount:
67 if type(e) is Command or type(e) is Option and e.argcount == 0:
182 def __init__(self, short=None, long=None, argcount=0, value=False): argument
183 assert argcount in (0, 1)
184 self.short, self.long, self.argcount = short, long, argcount
185 self.value = None if value is False and argcount else value
189 short, long, argcount, value = None, None, 0, False
198 argcount = 1
199 if argcount:
202 return class_(short, long, argcount, value)
216 self.argcount, self.value)
313 argcount = 1 if eq == '=' else 0
314 o = Option(None, long, argcount)
317 o = Option(None, long, argcount, value if argcount else True)
320 similar[0].argcount, similar[0].value)
321 if o.argcount == 0:
353 similar[0].argcount, similar[0].value)
355 if o.argcount != 0: