Python Forum
Custom commands - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Custom commands (/thread-21516.html)



Custom commands - JohnnyCoffee - Oct-02-2019

How do I customize commands to be executed by the terminal ?


RE: Custom commands - Larz60+ - Oct-03-2019

How to ask Smart Questions


RE: Custom commands - JohnnyCoffee - Oct-03-2019

I managed to solve here :

Using the getopt module, thanks.


RE: Custom commands - snippsat - Oct-03-2019

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.


RE: Custom commands - JohnnyCoffee - Oct-04-2019

(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.