Using argparse module, is it possible to disable recognizing of regex expressions in command-line arguments?
For example, if I have a code such as
#!/usr/bin/python3
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-a", "--arg", dest = "arg", nargs = 1, default = None)
args = parser.parse_args()
If someone runs this program as ./prog.py -a *, args.arg will be a list containing files in a present working directory, instead of a list containing just a '*', which is what I want.
So is there a way to disable this regex matching of argparse?