From: Ulf L. (P. Group) <ulf...@pt...> - 2020-07-30 06:26:09
|
You are right, bad oversight on my part. Thanks, Ulf From: Daniel Aarno <dan...@gm...> Sent: Wednesday, July 29, 2020 6:43 PM To: Ulf LORENZ (PTV Group) <ulf...@pt...> Cc: tcl...@li... Subject: Re: [Tclap-discuss] Invalid parsing of command line Looks like you never added the unlabeled arg to the parser: If you add cmdLine.add(unlabeledArg); before you call parse, it should work. On Wed, Jul 29, 2020 at 5:37 PM Ulf LORENZ (PTV Group) <ulf...@pt...<mailto:ulf...@pt...>> wrote: Hi, Attached is a test program that I threw together to evaluate tclap for our needs. However, if I run the command line (checkd Windows only, I think, but this should not matter) TestProg.exe -r -s -s -s -i 42 -m 10.0 -m 2.0 blah Tclap returns an error. Apparently, the last word is not parsed correctly as a parameter. Adding a "--" TestProg.exe -r -s -s -s -i 42 -m 10.0 -m 2.0 -- blah makes the command line valid, but now "blah" is not parsed as a positional argument. The examples are a bit contrived due to me just playing around, but should probably be within reach of what tclap wants to offer. Regards, Ulf _______________________________________________ Tclap-discuss mailing list Tcl...@li...<mailto:Tcl...@li...> https://lists.sourceforge.net/lists/listinfo/tclap-discuss |