Commit 20b04baf authored by Leo Pound Singer's avatar Leo Pound Singer

Derive GlobAction from StoreAction instead of AppendAction

When derived from AppendAction, it would return a list of tuples instead
of a single flat container.
Original: 5d8a880f1e474e897e88b28f2ba01a9e6d3ba0dd
parent 685434f6
......@@ -60,7 +60,7 @@ def TemporaryDirectory(suffix='', prefix='tmp', dir=None, delete=True):
shutil.rmtree(dir)
class GlobAction(argparse._AppendAction):
class GlobAction(argparse._StoreAction):
"""Generate a list of filenames from a list of filenames and globs."""
def __call__(self, parser, namespace, values, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment