So what you are trying to say is that people should hand-hack their option parsers...
No. You are the only one who's mentioned anything about "hand-hacking". I refer you to my earlier comment regarding "a lack of imagination".
... then what ever relevance does it have for this thread?
Ditto. Relevance:
Use [big thing] even if you think you only need [small thing]
Use a trailer even if you think you only need to pick up a pint of milk occasionally.
Use a Mack truck even if you are only picking the kids up from school.
Use a Howitzer even if you are only swatting a fly.
I deliberately didn't suggest any alternative, because the alternatives are already implicit in the title. Whatever you might have used that you are being encourage to drop in favour of GetOpt::Long, is one possibility.
That might, for example, be GetOpt::Std. That's restricted to 62 options...sooo limiting...not.
Now you are considering responding with the old saw that: long options are more descriptive and easier to remember. And that is just plain wrong. (YAJ) What do you think --Wno_mudflaps does?
Or in the context of a recursive HTTP download tool, what do you think the word 'spider' means? Now, how does what you think it means, fit with the description of the wget --spider switch: "don't download anything". Intuative?
I, in common with thousands of others, use the command tar -xvf archive.tar on a regular basis. I could type that as tar --extract --verbose --file=archive.tar, but I don't. And nobody I know does. Why would we?
Until I just looked them up I wasn't 100% certain that I knew what they actually did. But it doesn't matter, because I don't think of that as a command with three options. I think of it as as single command. It could, for all practical purposes be tar-xvf archive.tar.
And don't take any of that to mean that I am pro-getopt::std per se. The whole 'command line switch options as sub-languages' is a (well documented) complete mess. But like many other ingrained ideas, the begats and seven days amongst them, it is unlikely to go away any time soon.
In reply to Re^5: Use Getopt::Long even if you don't think you need to
by BrowserUk
in thread Use Getopt::Long even if you don't think you need to
by ysth
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |