Menu

#3 MultiArg does not work in xorAdd

closed
nobody
None
5
2005-01-27
2005-01-20
No

Multiple arguments do not seem to be allowed when a
MultiArg instance is added via xorAdd.

Why I wanted this: I wanted to supply a set of values
to my application either via a file or via the command
line. So I set up a ValueArg for capturing a filename
and a MultiArg for capturing multiple values on the
command line, and because I only want one or the other,
I add them to the CmdLine instance via xorAdd.

But, if I try to supply more than one value via the
MultiArg on the command line, I get a Too Many
Arguments parse error.

Discussion

  • Mike Smoot

    Mike Smoot - 2005-01-20

    Logged In: YES
    user_id=27603

    Yup, definitely a bug. I've got a tentative fix that I'm going to test a bit
    more and then check in. I'll keep you posted. Thanks!

     
  • Mike Smoot

    Mike Smoot - 2005-01-24

    Logged In: YES
    user_id=27603

    A fix for this is in cvs. Haven't encountered any
    problems yet, but you never know. Assuming no problems
    are uncovered, the fix will be in the next release.

     
  • Mike Smoot

    Mike Smoot - 2005-01-27
    • status: open --> closed
     
  • Mike Smoot

    Mike Smoot - 2006-08-19

    Logged In: YES
    user_id=27603

    this is in release 1.1.0

     

Log in to post a comment.