Q: argparse.add_argument()
Gisle Vanem
gvanem at yahoo.no
Sat Mar 18 15:33:48 EDT 2023
Thomas Passin wrote:
> Are you trying to troll here?
>
You just showed how you got an error with this construction, so why are you asking how to
> get an error with this construction?
I meant (obviously), another error-message besides:
error: unrecognized arguments: -cn
Perhaps from 'parser.add_argument ("-c, --clean", dest="clean", action="store_true")'
error: "-c, --clean", 2 options are unsupported.
BTW, accusing someone of 'trolling' is rather rude IMHO.
And thanks to ChrisA for a nice and normal answer.
--
--gv
More information about the Python-list
mailing list