(option, opt_str, value, parser)
Used to parse several arguments for one option, knowing that arguments
    never start with a `-` and `--`
Used to parse several arguments for one option, knowing that arguments
    never start with a `-` and `--`
Used to parse several arguments for one option knowing that arguments never start with a - and --
def _callback(option, opt_str, value, parser):
    """
    Used to parse several arguments for one option, knowing that arguments
    never start with a `-` and `--`
    """
    assert value is None
    value = []
    for arg in parser.rargs:
        # stop on --foo like options
        if arg[:2] == "--" and len(arg) > 2:
            break
        if arg[:1] == "-" and len(arg) > 1:
            break
        value.append(arg)
    del parser.rargs[:len(value)]
    setattr(parser.values, option.dest, value)
def _callback ( option , opt_str , value , parser ) : assert value is None value = [ ] for arg in parser . rargs : # stop on --foo like options if arg [ : 2 ] == "--" and len ( arg ) > 2 : break if arg [ : 1 ] == "-" and len ( arg ) > 1 : break value . append ( arg ) del parser . rargs [ : len ( value ) ] setattr ( parser . values , option . dest , value )