Changeset 5292 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 15, 2007 12:04:26 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 25293
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r5280 r5292 302 302 " [-register]\n" 303 303 " [-basefolder <path> | -settingsfile <path>]\n" 304 " [-uuid <uuid>]\n" 304 305 " \n" 305 306 "\n"); … … 3434 3435 Bstr settingsFile; 3435 3436 Bstr name; 3437 RTUUID id; 3436 3438 bool fRegister = false; 3437 3439 … … 3465 3467 name = argv[i]; 3466 3468 } 3469 else if (strcmp(argv[i], "-uuid") == 0) 3470 { 3471 if (argc <= i + 1) 3472 { 3473 return errorArgument("Missing argument to '%s'", argv[i]); 3474 } 3475 i++; 3476 if (VBOX_FAILURE(RTUuidFromStr(&id, argv[i]))) 3477 { 3478 return errorArgument("Invalid UUID format %s\n", argv[i]); 3479 } 3480 } 3467 3481 else if (strcmp(argv[i], "-register") == 0) 3468 3482 { … … 3489 3503 if (!settingsFile) 3490 3504 CHECK_ERROR_BREAK(virtualBox, 3491 CreateMachine(baseFolder, name, machine.asOutParam()));3505 CreateMachine(baseFolder, name, Guid(id), machine.asOutParam())); 3492 3506 else 3493 3507 CHECK_ERROR_BREAK(virtualBox, 3494 CreateLegacyMachine(settingsFile, name, machine.asOutParam()));3508 CreateLegacyMachine(settingsFile, name, Guid(id), machine.asOutParam())); 3495 3509 3496 3510 CHECK_ERROR_BREAK(machine, SaveSettings());
Note:
See TracChangeset
for help on using the changeset viewer.