[Insight-users] manage argumets : input, output, parameters

Dan Mueller dan.muel at gmail.com
Thu Sep 30 13:17:36 EDT 2010


Hi,

You might want to try boost program options module:
    http://www.boost.org/doc/libs/1_44_0/doc/html/program_options.html

HTH

Cheers, Dan

On 30 September 2010 19:03, elhadj meljane <elhadj.meljane at gmail.com> 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 ?
>
> Thanks


More information about the Insight-users mailing list