Using python and argparse, the user could input a file name with -d as the flag.
parser.add_argument(\"-d\", \"--dmp\", default=None)
Howev
You need to surround your path with quotes such as:
python programname.py -path "c:\My path with spaces"
In the argument parse you get a list with one element. You then have to read it like:
path = args.path[0]