commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phanindra <>
Subject [cli] Generate all possible commands
Date Sat, 28 Feb 2009 07:05:20 GMT
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

Thanks and Regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message