std.getopt suggestion
Christophe
travert at phare.normalesup.org
Wed Oct 5 09:33:37 PDT 2011
Andrei Alexandrescu , dans le message (digitalmars.D:146123), a écrit :
> On 10/5/11 10:12 AM, Christophe wrote:
>> One think I don't know regarding getopt, and that I didn't find in the
>> documentation (maybe because I didn't look close enough after having
>> found that -o output was not supported), is if the arguments are sorted
>> like in the c getopt, and how to get the remaining arguments ?
>> Shouldn't getopt return an array of the remaning arguments ?
>
> Second paragraph after synopsis.
>
> "In all cases, the command-line options that were parsed and used by
> getopt are removed from args. Whatever in the arguments did not look
> like an option is left in args for further processing by the program."
>
> Well at a point one does need to Read The Fine Manual or try a little
> experiment.
Sorry to bother you, I read this manual a long time ago, and was just
trying to answer Jens' question with a minimal involvment on my part,
with no d compiler available where I am.
Thanks for the answer anyway.
More information about the Digitalmars-d
mailing list