How do I replace the built in '-h' action in python using argparse? -


i creating command line tool in python, , i'm using argparse parse input.

i want use '-h' action, automatically assigned --help. how can override , have -h action?

parser = argparse.argumentparser(add_help=false) 

thanks asking, because had same problem other day , bothered checking documentation now.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -