class documentation

class _WriteOutConfigFileActionMixin(object): (source)

View In Hierarchy

Remembers the path this arg was given, on the parser that parsed it.

The path can't just be read back out of the parsed namespace once parsing finishes: another arg sharing this one's dest could have put a value there, from a config file or anywhere else, and writing a config file overwrites the path it is given. Recording it as the arg is parsed means only this arg decides where that write goes.

add_argument() puts this over whichever store action the program asked for, so an arg that does something of its own with the path still records it.

Method __call__ Undocumented
def __call__(self, parser, namespace, values, option_string=None): (source) ΒΆ

Undocumented