how to get command line arguments in python with flags code example
Example 1: python arguments
import sys
print ("the script has the name %s" % (sys.argv[0])
Example 2: argparse accept only few options
...
parser.add_argument('--val',
choices=['a', 'b', 'c'],
help='Special testing value')
args = parser.parse_args(sys.argv[1:])