[Insight-users] manage argumets : input, output, parameters
bill.lorensen at gmail.com
Thu Sep 30 16:33:24 EDT 2010
We have used tclap as part of the Slicer3 execution model. We found it
to be an excellent command line parser.
On Thu, Sep 30, 2010 at 1:44 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> You might want to try the TCLAP project also. Pretty clean implementation
> and easy to understand and use. If you look at
> under the "Getting values into the Computation Engine" there is a section
> that compares the use of TCLAP with Boost::program_options which is another
> option you could try.
> Mike Jackson www.bluequartz.net
> Principal Software Engineer mike.jackson at bluequartz.net
> BlueQuartz Software Dayton, Ohio
> On Sep 30, 2010, at 1:03 PM, elhadj meljane wrote:
>> Hi all,
>> I have a program that use too many arguments: input, output parameters,
>> the program work with
>> >./runProgram ImageInput ImageOutput Parameter1 .... ParameterN
>> Sometimes, just 1 prameter is needed.
>> I want to make the program easy to use, for example :
>> >./runProgram -I ImageInput -O ImageOutput -o option1 -p Parameter (in
>> > this case I dont need to give the rest of the parameters)
>> >./runProgram -I ImageInput -O ImageOutput -o option2 -p1 Parameter1 ...
>> > -pN parameterN
>> Do I need to implement method for this with "If" ....
>> or there exist itk methods that help to do that ?
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Kitware offers ITK Training Courses, for more information visit:
>> Please keep messages on-topic and check the ITK FAQ at:
>> Follow this link to subscribe/unsubscribe:
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Kitware offers ITK Training Courses, for more information visit:
> Please keep messages on-topic and check the ITK FAQ at:
> Follow this link to subscribe/unsubscribe:
More information about the Insight-users