18 """An argparse.Argument parse slightly changed such
19 that it always prints an extended help message incase of a parsing error."""
22 """Method invoked when a parsing error occured.
23 Writes an extended help over the base ArgumentParser.
26 sys.stderr.write(
'error: %s\n' % message)
32 """Class that instances can be given to an argparse.ArgumentParser.add_argument as choices keyword argument.
34 The explicit choices stated during construction of this object are just suggestions but all other values are
39 """Test for correctness of the choices.
40 Always returns true since all choices should be valid not only the ones stated at construction of this object.
45 """Displays all explicit values and a final "..." to indicate more choices might be possible."""
47 copy = list(super(NonstrictChoices, self).
__iter__())
52 """Displays all explicit values and a final "..." to indicate more choices might be possible."""
def __contains__(self, value)