ObjFW  objfw-new.1 at [b5e5d8b27c]

File utils/objfw-new/objfw-new.1 artifact f455eae687 part of check-in b5e5d8b27c


.\"
.\" 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)