You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Phanindra <ph...@gmail.com> on 2009/02/28 08:05:20 UTC

[cli] Generate all possible commands

Hi All,
Is there any way to generate the list of all possible commands from a given
command with options?
Example, say a command has a syntax: myCmd -option1 <value1> [-option2
<value2>] [-option3 <value3>] -option4 <value4>. The list of all possible
commands would be
myCmd -option1 <value1> -option4 <value4>
myCmd -option1 <value1> -option2 <value2> -option4 <value4>
myCmd -option1 <value1> -option3 <value3> -option4 <value4>
myCmd -option1 <value1> -option2 <value2> -option3 <value3> -option4
<value4>

Thanks and Regards,
Phanindra.