ObjFW  Check-in [049186b42e]

Overview
Comment:objfw-new: Document short options
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 049186b42ee00f1ebebcacb7cd4d6d1ccf966d92d7ef2eafa97d4301badf4d01
User & Date: js on 2024-01-02 17:22:22
Other Links: manifest | tags
Context
2024-01-02
17:26
utils: Indicate options with an argument with = check-in: 21823c0d56 user: js tags: trunk
17:22
objfw-new: Document short options check-in: 049186b42e user: js tags: trunk
17:17
Update copyright check-in: 26ddd2e4e4 user: js tags: trunk
Changes

Modified utils/objfw-new/ObjFWNew.m from [18bf6d82b0] to [5f604351d2].

37
38
39
40
41
42
43
44
45
46
47

48
49
50
51
52
53
54
55
56
	    @"Usage: %@ --app|--class [--superclass=] [--property=] name\n",
	    [OFApplication programName]];

	if (full) {
		[stream writeString: @"\n"];
		[stream writeLine:
		    @"Options:\n"
		    @"    --app          Create a new app\n"
		    @"    --class        Create a new class\n"
		    @"    --help         Show this help\n"
		    @"    --superclass=  Specify the superclass for the class\n"

		    @"    --property=    Add a property to the class.\n"
		    @"                   E.g.: --property='(readonly, "
		    @"nonatomic) id foo'"];
	}

	[OFApplication terminateWithStatus: status];
}

@implementation ObjFWNew







|
|
|
|
>
|
|







37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
	    @"Usage: %@ --app|--class [--superclass=] [--property=] name\n",
	    [OFApplication programName]];

	if (full) {
		[stream writeString: @"\n"];
		[stream writeLine:
		    @"Options:\n"
		    @"    -a  --app          Create a new app\n"
		    @"    -c  --class        Create a new class\n"
		    @"    -h  --help         Show this help\n"
		    @"    -s  --superclass=  Specify the superclass for the "
		    @"class\n"
		    @"    -p  --property=    Add a property to the class.\n"
		    @"                       E.g.: --property='(readonly, "
		    @"nonatomic) id foo'"];
	}

	[OFApplication terminateWithStatus: status];
}

@implementation ObjFWNew