added example script with arguments
This commit is contained in:
11
scripts/example-with-args.py
Executable file
11
scripts/example-with-args.py
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-t", "--test")
|
||||
clargs = parser.parse_args()
|
||||
|
||||
print(clargs)
|
||||
|
||||
|
Reference in New Issue
Block a user