I have a certain config file which calls upon its plugins. It's possible to pass arguments to those plugins. This config file also lets me call arbitary commands at runtime.
The plugins use many arguments: one of them is -h
and it does not stand for --help
. Now, my issue is that I want to call my own Python script as well as pass it some arguments. I'm using argparse and wanting to be consistent with the rest of the config, I created a -h
flag. To my surprise, argparse just gives me argparse.ArgumentError: argument -h/--help: conflicting option string(s): -h
instead of minding its own business.
Is there a way to stop this from happening?
I am well aware that most people expect -h
to give help but it's my own script and I think I know better what I want to use a flag for than the argparse devs.