On Wed, Sep 23, 2009 at 09:09:52AM +0200, Daniel Dehennin wrote: > Package: libgetopt-euclid-perl > Version: 0.2.1-1 > Severity: normal > I'm trying to have two options with repeated placeholders, but each one > eat the second when both are specified. > > According to the documentation, only "unconstrained repeated unflagged > placeholder will consume the rest of the command-line".
The "only" part isn't in the documentation :) Any placeholder that is immediately followed by "..." [example snipped] will match as many times as possible, but at least once. Note that this implies that an unconstrained repeated unflagged placeholder (see "Placeholder constraints" and "Unflagged placeholders") will consume the rest of the command-line, and so should be specified last in the POD. > =head1 REQUIRED ARGUMENTS > > =over > > =item --groups [=] <group>... | -g [=] <group>... > > List of groups > > =for Euclid: > group.type: string > > =item --hosts [=] <hostname>... | -h <hostname>... > > List of hostnames. > > =back The only constraint you're providing is 'group.type: string', which is the default type anyway, so this is effectively unconstrained. After all, '--hosts' is a string too. It seems to me this is the intended behaviour rather than a bug, but please let me know what you think. -- Niko Tyni [email protected] -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

