Using python and argparse, the user could input a file name with -d as the flag.
parser.add_argument(\"-d\", \"--dmp\", default=None)
Howev
For those who can't parse arguments and still get "error: unrecognized arguments:" I found a workaround:
parser.add_argument('-d', '--dmp', nargs='+', ...) opts = parser.parse_args()
and then when you want to use it just do
' '.join(opts.dmp)