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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -