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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -