Changeset 41754 in vbox
- Timestamp:
- Jun 15, 2012 1:03:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDebugVM.cpp
r39675 r41754 5 5 6 6 /* 7 * Copyright (C) 201 0Oracle Corporation7 * Copyright (C) 2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 169 169 RTGETOPTSTATE GetState; 170 170 RTGETOPTUNION ValueUnion; 171 172 /** @todo Put short options into enum / defines! */ 171 173 static const RTGETOPTDEF s_aOptions[] = 172 174 { 173 { "--release", 'r', RTGETOPT_REQ_NOTHING }, 175 { "--debug", 'd', RTGETOPT_REQ_NOTHING }, 176 { "--release", 'r', RTGETOPT_REQ_NOTHING } 174 177 }; 175 int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, 0 /*fFlags*/);178 int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, RTGETOPTINIT_FLAGS_OPTS_FIRST); 176 179 AssertRCReturn(rc, RTEXITCODE_FAILURE); 177 180 … … 188 191 break; 189 192 190 case VINF_GETOPT_NOT_OPTION: 193 /* Because log strings can start with "-" (like "-all+dev_foo") 194 * we have to take everything we got as a setting and apply it. 195 * IPRT will take care of the validation afterwards. */ 196 default: 191 197 if (strSettings.length() == 0) 192 198 strSettings = ValueUnion.psz; … … 197 203 } 198 204 break; 199 200 default:201 return errorGetOpt(USAGE_DEBUGVM, rc, &ValueUnion);202 205 } 203 206 }
Note:
See TracChangeset
for help on using the changeset viewer.