[MOAB-dev] ProgOptions recognizes negative positional arguments as options
Grindeanu, Iulian R.
iulian at mcs.anl.gov
Tue Sep 1 13:43:40 CDT 2015
Hi
I am not familiar with that class, I think someone in Madison developed it
what is your test ?
How many "required" double options do you have?
Do you use addRequiredArg method? How many times?
When does the error appear? (at parsing?) Can you put the "optional" one at the end of the arguments?
If you use addOptionalArgs, do you still see that problem? (I understand you prefer "required", as it is simpler)
Iulian
________________________________________
From: moab-dev-bounces at mcs.anl.gov [moab-dev-bounces at mcs.anl.gov] on behalf of shriwise [shriwise at wisc.edu]
Sent: Tuesday, September 01, 2015 12:43 PM
To: moab-dev at mcs.anl.gov
Subject: [MOAB-dev] ProgOptions recognizes negative positional arguments as options
Hey all,
Just noticed this when I was using this incredibly handy class to write
a program today.
I use it often, but just noticed this today. I have a series of required
double arguments and a single option, but when I make one of the doubles
negative, ProgOptions tries to evaluate the argument as an option and
returns an error.
In this case, I've registered one long option with the ProgOptions
class. This error occurs whether I specify this option in the command
line or not.
I've made a few small changes so I can continue to use the class with
negative double arguments, but it breaks many of the tests in MOAB.
Is anyone more familiar with this class? If not, I can look more deeply
into it today/tomorrow and submit a test&fix.
Cheers,
Patrick
--
Patrick C. Shriwise
Research Fellow
University of Wisconsin - Madison
Engineering Research Building - Rm. 428
1500 Engineering Drive
Madison, WI 53706
(608) 446-8173
More information about the moab-dev
mailing list