This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sample script to parse arguments in the form of foo=bar and return a dict value | |
""" | |
import argparse | |
class ParseTags(argparse.Action): | |
""" | |
This class overrides the argparse.Action __call__ method to evaluate | |
the arguments, create a dict, and then return that dict as the argument's |