I have the following script:
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-s",metavar="",help="some help",type=int,default=0.5)
print parser.parse_args()
The 3rd line, I'd like to have the type of int and string. So the user can use one of these values [0, 0.1, 0.2, 0.3, 0.5, 'best'].
How can I do that?