Index: utils/objfw-new/Makefile ================================================================== --- utils/objfw-new/Makefile +++ utils/objfw-new/Makefile @@ -4,10 +4,11 @@ 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} ADDED utils/objfw-new/objfw-new.1 Index: utils/objfw-new/objfw-new.1 ================================================================== --- /dev/null +++ utils/objfw-new/objfw-new.1 @@ -0,0 +1,61 @@ +.\" +.\" Copyright (c) 2008-2024 Jonathan Schleifer +.\" +.\" 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 +.\" . +.\" +.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)