Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Getopt::TooMany: looking for a perfect CLI processor

by Dallaylaen (Chaplain)
on Sep 10, 2019 at 13:10 UTC ( [id://11105961]=note: print w/replies, xml ) Need Help??


in reply to Re: Getopt::TooMany: looking for a perfect CLI processor
in thread Getopt::TooMany: looking for a perfect CLI processor

I don't know, somehow I prefer to have option descriptions close to the declarations. A POD is (hopefully) a comprehensive manual with detailed explanations, whereas --help is just a quick reminder for those who can't keep all the options in their head. Maybe I'm wrong and will change my mind later.

#2 is merely avoiding namespace pollution (via lots of exported functions - easy to forget or hit a collision), @ISA clutter (when one has to extend a Getopt:: class - I've seen that a couple times on CPAN), and awkward syntax (local $Foo::Bar::VariableName = $Foo::Bar::VariableName + 1 is a cool feature, but let's use it when it's needed).

Oh and thanks for mentioning Pod::Usage, I didn't know of that one.

  • Comment on Re^2: Getopt::TooMany: looking for a perfect CLI processor

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11105961]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2024-04-23 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found