Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom commands
#1
How do I customize commands to be executed by the terminal ?
Reply
#2
How to ask Smart Questions
Reply
#3
I managed to solve here :

Using the getopt module, thanks.
Reply
#4
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.
Reply
#5
(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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020