I’m actualy configure my .cli and i looking to have a cmd name ‘test-cli’ with 4 parameters added in any order.
I’m looking also to make my parameters optional.
localhost>test-cli param1 param2 param3 param4
or
localhost>test-cli param2
or
localhost>test-cli param4 param 1 param 3
or
localhost>test-cli param2 param4
didn’t works i got an error
localhost>test-cli param2 ?
% Invalid input detected at ‘^’ marker.
There are two options. You can make all params optional with choice attribute (see description /clispec/$MODE/cmd/params in the ConfD User Guide - clispec section):
<params mode="choice" min="0" max="1">
or with optional sub-element (see /clispec/$MODE/cmd/params/param/optional):