summaryrefslogtreecommitdiff
path: root/man/meson.1
diff options
context:
space:
mode:
authorJohn Wiele <jwiele@redhat.com>2024-05-29 17:33:28 -0400
committerJohn Wiele <jwiele@redhat.com>2024-06-06 09:14:14 -0400
commit80a4b4a2ecd33bdbd73ca405a4f0221692bae57b (patch)
treef0aa41e33ed634f129630b0306d53852a7e14e6a /man/meson.1
parent762262856a95c0e706629933d9e84050a57aa45f (diff)
downloadmeson-80a4b4a2ecd33bdbd73ca405a4f0221692bae57b.tar.gz
Add help for meson init to the man page.
The added help text was derived from the output of the meson help command much like the markdown online help is derived.
Diffstat (limited to 'man/meson.1')
-rw-r--r--man/meson.162
1 files changed, 62 insertions, 0 deletions
diff --git a/man/meson.1 b/man/meson.1
index 919f4545e..15b2b9357 100644
--- a/man/meson.1
+++ b/man/meson.1
@@ -200,6 +200,68 @@ print all unit tests
\fB\-\-help\fR
print command line help
+.SH The init command
+
+.B meson init
+creates a new project
+
+.B meson init [
+.I options
+.B ] [
+.I sourcefile...
+.B ]
+
+.SS "positional arguments:"
+.TP
+sourcefile...
+source files. default: all recognized files in current directory
+
+.SS "options:"
+.TP
+\fB\-h, \-\-help\fR
+show this help message and exit
+
+.TP
+\fB\-C WD\fR
+directory to cd into before running
+
+.TP
+\fB\-n NAME, \-\-name NAME\fR
+project name. default: name of current directory
+
+.TP
+\fB\-e EXECUTABLE, \-\-executable EXECUTABLE\fR
+executable name. default: project name
+
+.TP
+\fB\-d DEPS, \-\-deps DEPS\fR
+dependencies, comma-separated
+
+.TP
+\fB\-l {c,cpp,cs,cuda,d,fortran,java,objc,objcpp,rust,vala}, \
+\-\-language {c,cpp,cs,cuda,d,fortran,java,objc,objcpp,rust,vala}\fR
+project language. default: autodetected based on source files
+
+.TP
+\fB\-b, \-\-build
+build after generation
+
+.TP
+\fB\-\-builddir BUILDDIR\fR
+directory for build
+
+.TP
+\fB\-f, \-\-force\fR
+force overwrite of existing files and directories.
+
+.TP
+\fB\-\-type {executable,library}\fR
+project type. default: executable based project
+
+.TP
+\fB\-\-version VERSION\fR
+project version. default: 0.1
+
.SH The test command
.B meson test