You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.:
act='storemeans to store the value pased after the switch name, e.g.-s hellowill store the stringhello`;
act='store_true' means that the switch doesn't require a value, but if passed the value .true. is automatically stored, e.g. -save could be an invocation of a switch to activate the saving of a file.
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.
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.
The text was updated successfully, but these errors were encountered: