I have a parser like this
parser = argparse.ArgumentParser()
parser.add_argument('--template', metavar='FILE', nargs=1, required=True)
and pass the arguments like this
myprog --template template.txt
But when I later check the args obtained from args = parser.parse_args() I will get
['template.txt']
Can I get the plain 'template.txt' instead? Thank you.