Index: utils/objfw-new/NewClass.m ================================================================== --- utils/objfw-new/NewClass.m +++ utils/objfw-new/NewClass.m @@ -101,11 +101,11 @@ } [headerFile writeString: @") "]; } - [headerFile writeFormat: @"%@_%@;\n", + [headerFile writeFormat: @"%@%@;\n", property.type, property.name]; } [headerFile writeString: @"@end\n" @"\n" Index: utils/objfw-new/ObjFWNew.m ================================================================== --- utils/objfw-new/ObjFWNew.m +++ utils/objfw-new/ObjFWNew.m @@ -44,30 +44,27 @@ { bool app, class; OFString *superclass = nil; OFMutableArray OF_GENERIC(OFString *) *properties = nil; const OFOptionsParserOption options[] = { - { '\0', @"app", 0, &app, NULL }, - { '\0', @"class", 0, &class, NULL }, - { '\0', @"superclass", 1, NULL, &superclass }, - { '\0', @"property", 1, NULL, NULL }, + { 'a', @"app", 0, &app, NULL }, + { 'c', @"class", 0, &class, NULL }, + { 's', @"superclass", 1, NULL, &superclass }, + { 'p', @"property", 1, NULL, NULL }, { '\0', nil, 0, NULL, NULL } }; OFOptionsParser *optionsParser; OFUnichar option; optionsParser = [OFOptionsParser parserWithOptions: options]; while ((option = [optionsParser nextOption]) != '\0') { switch (option) { - case '-':; - if ([optionsParser.lastLongOption - isEqual: @"property"]) { - if (properties == nil) - properties = [OFMutableArray array]; - - [properties addObject: optionsParser.argument]; - } + case 'p': + if (properties == nil) + properties = [OFMutableArray array]; + + [properties addObject: optionsParser.argument]; break; case '?': case ':': case '=': showUsage();