Recommendation on option parsing
Chris Piker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue May 13 10:05:14 PDT 2014
>> Okay, I replaced the std.getopt that came with dmd with your
>> version. My code compiles, but of course it doesn't link
>> against the old libphobos.so.
> Well, it is a pull request for std.getopt, therefore it can't
> stand
> alone. That been said, get into getopt.d and copy anything
> below line
> 1061 ( the begin of the comment for GetoptExRslt) into a new
> file. Add
> all imports from getopt.d + std.getopt and then add the new
> file to
> you're build. This allows you to use getoptEx without modifying
> your
> systems default libphobos.
I tried that, but you're using private members of std.getopt
(which of course is okay for the way you intended the code
to be used) so I stopped pursuing this solution. In fact, I
used up all the schedule margin that I have for this small work
project just trying to get decent command line handling.
Since there is no more time to spare I've gone back to using
python for my current tasks.
I'll try to use D again sometime in the future. Hopefully
someday the D community will coalesce a bit more around
standard solutions for the un-exciting parts of programming.
As a group you seem to do a great job at tackling the hard
stuff. The logger project I saw on dub last night is a great
example of the simple polish that I need D to have in order
to make the switch from python for my day-to-day programming
needs.
Kind Regards
--
Chris
More information about the Digitalmars-d-learn
mailing list