Re: getopt upgrade

2014-01-06 Thread Andrej Mitrovic
On 1/3/14, Andrej Mitrovic wrote: > I have a simpler idea, and I'm already working on the following features: I've settled for a slightly different API w.r.t. the header/footer configuration, but otherwise I've made the pull here: https://github.com/D-Programming-Language/phobos/pull/1840 I'm s

Re: getopt upgrade

2014-01-03 Thread Robert BuRnEr Schadek
please make this happen. maybe a user defined help printing function would be useful. I could image that printing the help information is something somebody would like to modify. On 01/03/2014 06:16 PM, Andrej Mitrovic wrote: > On 9/3/13, Jacob Carlborg wrote: >> Could we get some form of API to

Re: getopt upgrade

2014-01-03 Thread Andrej Mitrovic
On 9/3/13, Jacob Carlborg wrote: > Could we get some form of API to set a header and footer that is printed > with the help text. Possible idea: > > bool help; > > getopt(args, "h|help", &help, @doc("Show this message and exit."); > getopt.header = "Usage foo [options]\nVersion 0.0.1\n\n"; > getop