Closed wadudmiah closed 7 years ago
@wadudmiah Hi, I am not sure to follow your question.
The argument act
is used to select the kind of CLA you are defining, e.g.:
means to store the value pased after the switch name, e.g.
-s hellowill store the string
hello`;.true.
is automatically stored, e.g. -save
could be an invocation of a switch to activate the saving of a file.For more details about the definition of CLA refer to the wiki https://github.com/szaghi/FLAP/wiki/CLI-Method-add
Let me know if this help, or give me more details.
See you soon.
Moreover, the value stored can be of any kind: it is parsed as a string and returned on your demand with the type and kind you want, e.g. -i 65
will store 65 as a string, but with %get
method you will obtain an integer, if you want.
@szaghi thanks for your help on this! much appreciated.
Hello,
In your example code, there is an actual argument called "act" with a value "store":
call cli%add(switch='--string', & switch_ab='-s', & help='a string', & required=.true., & act='store', & error=error)
What exactly is this argument for and what the possible values and their meanings?
Thanks in advance, Wadud.