Lines Matching defs:OPTIONAL
80 'OPTIONAL',
98 OPTIONAL = '?'
605 elif action.nargs == OPTIONAL:
720 defaulting_nargs = [OPTIONAL, ZERO_OR_MORE]
941 if const is not None and nargs != OPTIONAL:
942 raise ValueError('nargs must be %r to supply const' % OPTIONAL)
1033 if const is not None and nargs != OPTIONAL:
1034 raise ValueError('nargs must be %r to supply const' % OPTIONAL)
1552 if kwargs.get('nargs') not in [OPTIONAL, ZERO_OR_MORE]:
2200 OPTIONAL: _('expected at most one argument'),
2342 elif nargs == OPTIONAL:
2474 if not arg_strings and action.nargs == OPTIONAL:
2494 elif len(arg_strings) == 1 and action.nargs in [None, OPTIONAL]: