I recently found a click library ( http://click.pocoo.org/6/ ) and I like it.
I am trying to figure out if it is possible to create an alias for the --help parameter, which contains help shortcuts. So for example:
app.py --help
provides assistance for the main application and
app.py sub --help
will provide assistance for sub. I want to use -h too. If I created this parameter, it might look something like this:
@click.option('-h', '--help')
but the --help option is built in. Is there a way to expand this setting or create an alias for it?
source share