Blame SOURCES/pyproject_construct_toxenv.py

838e4d
import argparse
838e4d
import sys
838e4d
838e4d
838e4d
def main(argv):
838e4d
    parser = argparse.ArgumentParser(
838e4d
        description='Parse -e arguments instead of RPM getopt.'
838e4d
    )
838e4d
    parser.add_argument('-e', '--toxenv', action='append')
838e4d
    args, _ = parser.parse_known_args(argv)
838e4d
    return ','.join(args.toxenv)
838e4d
838e4d
838e4d
if __name__ == '__main__':
838e4d
    print(main(sys.argv[1:]))