def cmdline(argv, flags):
    rules = dict([(flag, {'flags': ["--%s" % flag]}) for flag in flags])
    return parse(argv, rules)
A cmdopts wrapper that takes a list of flags and builds the
dataset/ETHPy150Open splunk/splunk-sdk-python/examples/job.py/cmdline