795a9b3332
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git#26bb3cb4d123a7f57df5ec56b17ccbf3d415c505
16 lines
348 B
Python
16 lines
348 B
Python
import argparse
|
|
import sys
|
|
|
|
|
|
def main(argv):
|
|
parser = argparse.ArgumentParser(
|
|
description='Parse -e arguments instead of RPM getopt.'
|
|
)
|
|
parser.add_argument('-e', '--toxenv', action='append')
|
|
args, _ = parser.parse_known_args(argv)
|
|
return ','.join(args.toxenv)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
print(main(sys.argv[1:]))
|