I am attempting to build a generic template. The usual command line arguments for the template have the format -{0}={1}
. However, one argument is simply -{0}
, ie only key but no value. I am aware that IsFlagArgument
is meant to help with these situations (although the wiki does not cover that and so it is not entirely clear how it is used - eg, does AMP add the -
based on the command line argument format or does it need to be specified in the checkbox json blob?). But in my case I want to allow the user to select (with a checkbox) whether the argument is added or not. My understanding though is that the checkbox functionality only deals with the value of an argument, not the key.
Is there any way to achieve what I am after - ie, add the “flag” argument depending on whether the user turns the checkbox on?