ObjFW  Check-in [5ccfd65db4]

Overview
Comment:Add manpage for objfw-new
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5ccfd65db439e8c8011ee51a8e84182297c4db1cefb0fd1eb242f23fb76f7a81
User & Date: js on 2024-09-01 09:24:18
Other Links: manifest | tags
Context
2024-09-01
12:31
Add manpage for ofarc check-in: 147ee732fc user: js tags: trunk
09:24
Add manpage for objfw-new check-in: 5ccfd65db4 user: js tags: trunk
09:04
Improve style of manpages check-in: 15b4690419 user: js tags: trunk
Changes

Modified utils/objfw-new/Makefile from [8cc4a388ef] to [025dc70f79].

1
2
3
4
5
6
7
8

9
10
11
12
13
14
15
include ../../extra.mk

PROG = objfw-new${PROG_SUFFIX}
SRCS = NewApp.m		\
       NewClass.m	\
       NewTest.m	\
       ObjFWNew.m	\
       Property.m


include ../../buildsys.mk

${PROG}: ${LIBOBJFW_DEP_LVL2} ${LIBOBJFWRT_DEP_LVL2}

CPPFLAGS += -I../../src					\
	    -I../../src/runtime				\








>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include ../../extra.mk

PROG = objfw-new${PROG_SUFFIX}
SRCS = NewApp.m		\
       NewClass.m	\
       NewTest.m	\
       ObjFWNew.m	\
       Property.m
MAN = objfw-new.1

include ../../buildsys.mk

${PROG}: ${LIBOBJFW_DEP_LVL2} ${LIBOBJFWRT_DEP_LVL2}

CPPFLAGS += -I../../src					\
	    -I../../src/runtime				\

Added utils/objfw-new/objfw-new.1 version [6f05de98ad].



























































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.\"
.\" Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
.\"
.\" All rights reserved.
.\"
.\" This program is free software: you can redistribute it and/or modify it
.\" under the terms of the GNU Lesser General Public License version 3.0 only,
.\" as published by the Free Software Foundation.
.\"
.\" This program is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
.\" version 3.0 for more details.
.\"
.\" You should have received a copy of the GNU Lesser General Public License
.\" version 3.0 along with this program. If not, see
.\" <https://www.gnu.org/licenses/>.
.\"
.TH OBJFW-NEW 1
.SH NAME
objfw-new - create source code from templates
.SH SYNOPSIS
.B objfw-new
\fB\-\-app\fR|\fB\-\-class\fR|\fB\-\-test\fR [\fR--superclass=\fIclass\fR]
[\fB\-\-property=\fIproperty\fR] \fIname\fR
.SH DESCRIPTION
.B objfw-new
is a program which creates source code from templates.
.SH OPTIONS
.TP
.BR \fB\-a\fR ", " \fB\-\-app\fR
Create a new app.
.TP
.BR \fB\-c\fR ", " \fB\-\-class\fR
Create a new class.
.TP
.BR \fB\-h\fR ", " \fB\-\-help\fR
Show the help.
.TP
.BR \fB\-p\fR " " \fIproperty\fR ", " \fB\-\-property=\fIproperty\fR
Add a property to the class. See examples for syntax.
.TP
.BR \fB\-s\fR " " \fIclass\fR ", " \fB\-\-superclass=\fIclass\fR
.TP
.BR \fB\-t\fR ", " \fB\-\-test\fR
Create a new test.
.SH EXAMPLES
Create a new application:
.PP
	objfw-new -a MyApp
.PP
Create a new class \fBDog\fR with a property \fBname\fR and superclass
\fBAnimal\fR:
.PP
	objfw-new -c -s Animal -p '(copy, nonatomic) OFString *name' Dog
.PP
Create a new test:
.PP
	objfw-new -t DogTest
.SH SEE ALSO
\fIobjfw-compile\fR(1)