Changeset 52927 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 2, 2014 11:34:37 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96364
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDebugVM.cpp
r46658 r52927 168 168 RTGETOPTUNION ValueUnion; 169 169 170 /** @todo Put short options into enum / defines! */ 170 /* 171 * NB: don't use short options to prevent log specifications like 172 * "-drv_foo" from being interpreted as options. 173 */ 174 # define DEBUGVM_LOG_DEBUG (VINF_GETOPT_NOT_OPTION + 'd') 175 # define DEBUGVM_LOG_RELEASE (VINF_GETOPT_NOT_OPTION + 'r') 176 171 177 static const RTGETOPTDEF s_aOptions[] = 172 178 { 173 { "--debug", 'd',RTGETOPT_REQ_NOTHING },174 { "--release", 'r', RTGETOPT_REQ_NOTHING }179 { "--debug", DEBUGVM_LOG_DEBUG, RTGETOPT_REQ_NOTHING }, 180 { "--release", DEBUGVM_LOG_RELEASE, RTGETOPT_REQ_NOTHING } 175 181 }; 176 182 int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, RTGETOPTINIT_FLAGS_OPTS_FIRST); … … 181 187 switch (rc) 182 188 { 183 case 'r':189 case DEBUGVM_LOG_RELEASE: 184 190 fRelease = true; 185 191 break; 186 192 187 case 'd':193 case DEBUGVM_LOG_DEBUG: 188 194 fRelease = false; 189 195 break;
Note:
See TracChangeset
for help on using the changeset viewer.