- Timestamp:
- Oct 22, 2010 3:14:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageAppliance.cpp
r33361 r33363 105 105 { "--type", 'T', RTGETOPT_REQ_UINT32 }, // deprecated 106 106 { "-type", 'T', RTGETOPT_REQ_UINT32 }, // deprecated 107 // { "--controller", 'C', RTGETOPT_REQ_STRING }, 107 #if 0 /* Changing the controller is fully valid, but the current design on how 108 the params are evaluated here doesn't allow two parameter for one 109 unit. The target disk path is more importend. I leave it for future 110 improvments. */ 111 { "--controller", 'C', RTGETOPT_REQ_STRING }, 112 #endif 108 113 { "--disk", 'D', RTGETOPT_REQ_STRING }, 109 114 }; … … 625 630 aExtraConfigValues[a]); 626 631 } 627 // Utf8StrFmt strTypeArg("controller%u", a); 628 // if (findArgValue(strOverride, pmapArgs, strTypeArg)) 629 // { 632 #if 0 /* Changing the controller is fully valid, but the current design on how 633 the params are evaluated here doesn't allow two parameter for one 634 unit. The target disk path is more importend. I leave it for future 635 improvments. */ 636 Utf8StrFmt strTypeArg("controller%u", a); 637 if (findArgValue(strOverride, pmapArgs, strTypeArg)) 638 { 630 639 // strOverride now has the controller index as a number, but we 631 640 // need a "controller=X" format string 632 // strOverride = Utf8StrFmt("controller=%s", strOverride.c_str()); 633 // Bstr bstrExtraConfigValue = strOverride; 634 // bstrExtraConfigValue.detachTo(&aExtraConfigValues[a]); 635 // RTPrintf("%2u: Hard disk image: source image=%ls, target path=%ls, %ls\n", 636 // a, 637 // aOvfValues[a], 638 // aVboxValues[a], 639 // aExtraConfigValues[a]); 640 // } 641 strOverride = Utf8StrFmt("controller=%s", strOverride.c_str()); 642 Bstr bstrExtraConfigValue = strOverride; 643 bstrExtraConfigValue.detachTo(&aExtraConfigValues[a]); 644 RTPrintf("%2u: Hard disk image: source image=%ls, target path=%ls, %ls\n", 645 a, 646 aOvfValues[a], 647 aVboxValues[a], 648 aExtraConfigValues[a]); 649 } 650 #endif 641 651 else 642 652 RTPrintf("%2u: Hard disk image: source image=%ls, target path=%ls, %ls"
Note:
See TracChangeset
for help on using the changeset viewer.