Simplify OptionParser
OBSOLETE: OptionParser.pm may be a bit of a mess, but it has worked reliably for 5+ years. Let's not fix what isn't broken unless we have better reasons.
OptionParser is a mess. Currently its design reflects a long evolution.
In the beginning, I wrote programs that looked like this:
http://
This slowly evolved into programs that looked at the POD and parsed out the data necessary to fill the @opt_spec variable in that program.
The @opt_spec thing is an intermediate "transition step" between POD and Getopt::Long. I think we can simplify that a lot and make the code much easier to use and test, with 100% backwards compatibility. I like the way we work with the POD, and I like the $o->foo interface to OptionParser, I just don't like what it does internally.
However, my memory could also be flawed, and the code could be more sensible than I remember it being.
Assess - recommend - and fix if necessary!
Blueprint information
- Status:
- Complete
- Approver:
- Baron Schwartz
- Priority:
- Undefined
- Drafter:
- Baron Schwartz
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Not started
- Milestone target:
- None
- Started by
- Completed by
- Daniel Nichter