Add long options
FossilOrigin-Name: 9684b46414b4a589d60bd7067a0b2ea3f8cb1a46bc68d98f068c36be25798352
This commit is contained in:
parent
db3bb84a6a
commit
9782fa9b54
1 changed files with 8 additions and 5 deletions
13
src/Cube.mm
13
src/Cube.mm
|
@ -115,11 +115,14 @@ int framesinmap = 0;
|
||||||
log("sdl");
|
log("sdl");
|
||||||
|
|
||||||
const OFOptionsParserOption options[] = {
|
const OFOptionsParserOption options[] = {
|
||||||
{'d', nil, 0, &dedicated, NULL}, {'t', nil, 0, &windowed, NULL},
|
{'d', @"dedicated", 0, &dedicated, NULL},
|
||||||
{'w', nil, 1, NULL, NULL}, {'h', nil, 1, NULL, NULL},
|
{'t', @"window", 0, &windowed, NULL},
|
||||||
{'u', nil, 1, NULL, NULL}, {'n', nil, 1, NULL, &sdesc},
|
{'w', @"width", 1, NULL, NULL}, {'h', @"height", 1, NULL, NULL},
|
||||||
{'i', nil, 1, NULL, &ip}, {'m', nil, 1, NULL, &master},
|
{'u', @"upload-rate", 1, NULL, NULL},
|
||||||
{'p', nil, 1, NULL, &passwd}, {'c', nil, 1, NULL, NULL}};
|
{'n', @"server-desc", 1, NULL, &sdesc}, {'i', @"ip", 1, NULL, &ip},
|
||||||
|
{'m', @"master", 1, NULL, &master},
|
||||||
|
{'p', @"password", 1, NULL, &passwd},
|
||||||
|
{'c', @"max-clients", 1, NULL, NULL}};
|
||||||
OFOptionsParser *optionsParser =
|
OFOptionsParser *optionsParser =
|
||||||
[OFOptionsParser parserWithOptions:options];
|
[OFOptionsParser parserWithOptions:options];
|
||||||
OFUnichar option;
|
OFUnichar option;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue