--- a/commands/variant/variant.cpp Thu Aug 26 11:47:04 2010 +0100
+++ b/commands/variant/variant.cpp Thu Aug 26 15:28:08 2010 +0100
@@ -72,6 +72,19 @@
void CCmdVariant::DoRunL()
{
+ if (iList)
+ {
+ Printf(_L("Supported variants: "));
+ for (TInt i = 0; i < KMachineIdVariantCount; i++)
+ {
+ Printf(_L("%S, "), &KMachineIdVariants[i].iName);
+ }
+ // Finally add the ones which don't appear in KMachineIdVariants
+ Write(_L("wins, target\r\n"));
+ Complete(KErrNone);
+ return;
+ }
+
if (iMachineId.Count() == 0 && iVariant.Count() == 0)
{
LeaveIfErr(KErrArgument, _L("You must specify at least one <variantname> argument or --uid option"));
@@ -137,6 +150,8 @@
aOptions.AppendUintL(iMachineId, KCmdOptUid);
_LIT(KOptVerbose, "verbose");
aOptions.AppendBoolL(iVerbose, KOptVerbose);
+ _LIT(KOptList, "list");
+ aOptions.AppendBoolL(iList, KOptList);
}
//