You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
348 B
16 lines
348 B
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:]))
|