Files
pier/scripts/example-with-args.py

12 lines
157 B
Python
Executable File

#!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-t", "--test")
clargs = parser.parse_args()
print(clargs)