Python Forum

Full Version: Custom commands
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I customize commands to be executed by the terminal ?
I managed to solve here :

Using the getopt module, thanks.
JohnnyCoffee Wrote:Using the getopt module, thanks.
getop is not the best option at all.
Buggy manual parsing with bad documentation and no one use it Hand

In in standard library is argparse which is okay.
I use Click if need to make command line interfaces.
Did a quick review here,a usage example here and here.
(Oct-03-2019, 10:41 AM)snippsat Wrote: [ -> ]
JohnnyCoffee Wrote:Using the getopt module, thanks.
getop is not the best option at all. Buggy manual parsing with bad documentation and no one use it Hand In in standard library is argparse which is okay. I use Click if need to make command line interfaces. Did a quick review here,a usage example here and here.
Grateful had already made the correction.