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)
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)