Changeset 18323 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 26, 2009 3:29:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r18108 r18323 61 61 static const RTGETOPTDEF g_aDHCPIPOptions[] 62 62 = { 63 { "--netname", 'n', RTGETOPT_REQ_STRING }, 64 { "-netname", 'n', RTGETOPT_REQ_STRING }, // deprecated (if removed check below) 65 { "--ifname", 'i', RTGETOPT_REQ_STRING }, 66 { "-ifname", 'i', RTGETOPT_REQ_STRING }, // deprecated 63 { "--netname", 't', RTGETOPT_REQ_STRING }, /* we use 't' instead of 'n' to avoid 64 * 1. the misspelled "-enable" long option to be treated as 'e' (for -enable) + 'n' (for -netname) + "<the_rest_opt>" (for net name) 65 * 2. the misspelled "-netmask" to be treated as 'n' (for -netname) + "<the_rest_opt>" (for net name) 66 */ 67 { "-netname", 't', RTGETOPT_REQ_STRING }, // deprecated (if removed check below) 68 { "--ifname", 'f', RTGETOPT_REQ_STRING }, /* we use 'f' instead of 'i' to avoid 69 * 1. the misspelled "-disable" long option to be treated as 'd' (for -disable) + 'i' (for -ifname) + "<the_rest_opt>" (for if name) 70 */ 71 { "-ifname", 'f', RTGETOPT_REQ_STRING }, // deprecated 67 72 { "--ip", 'a', RTGETOPT_REQ_STRING }, 68 73 { "-ip", 'a', RTGETOPT_REQ_STRING }, // deprecated … … 109 114 switch (c) 110 115 { 111 case ' n': // --netname116 case 't': // --netname 112 117 if(pNetName) 113 118 return errorSyntax(USAGE_DHCPSERVER, "You can only specify --netname once."); … … 119 124 } 120 125 break; 121 case ' i': // --ifname126 case 'f': // --ifname 122 127 if(pIfName) 123 128 return errorSyntax(USAGE_DHCPSERVER, "You can only specify --ifname once.");
Note:
See TracChangeset
for help on using the changeset viewer.