- class wwt_data_formats.cli.EnsureGlobsExpandedAction(option_strings, dest, nargs=None, const=None, default=None, type=None, choices=None, required=False, help=None, metavar=None)[source]¶
An action to handle globbing for path-list arguments on Windows.
If the CLI program is being run from the Windows command prompt, there is no expansion of globs by the shell. It turns out that to get globbing behavior, we have to manually implement it ourselves. This class helps make this convenient. It can be used as a
action=keyword argument to
ArgumentParser.add_argument()and, on Windows, will process argument text to apply globs. This argument should generally be used on arguments with a
__call__(parser, namespace, values[, ...])
Call self as a function.