From 992ec923a7b81845d0c2a0fe9374fd9cf8d054fa Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Wed, 19 Mar 2025 10:35:06 -0400 Subject: man page: Running without 'setup' is deprecated Move the mention of the (deprecated) default command mode down near the end of the page, instead of presenting it right up front. --- man/meson.1 | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'man') diff --git a/man/meson.1 b/man/meson.1 index deb320dbc..af8233cde 100644 --- a/man/meson.1 +++ b/man/meson.1 @@ -40,19 +40,6 @@ your build dir. After that you just run the build command. Meson will autodetect changes in your source tree and regenerate all files needed to build the project. -The setup command is the default operation. If no actual command is -specified, Meson will assume you meant to do a setup. That means -that you can set up a build directory without the setup command -like this: - -.B meson [ -.I options -.B ] [ -.I build directory -.B ] [ -.I source directory -.B ] - .SS "options:" .TP \fB\-\-version\fR @@ -658,6 +645,13 @@ try to read configuration from .editorconfig \fB-o OUTPUT, --output OUTPUT\fR output file (implies having exactly one input) +.SH When no command is specified + +If you run Meson without a subcommand, it will assume you meant +\fBmeson setup\fR. However, this syntax is deprecated, and Meson +will print a warning message if it is used. You should always use +\fBmeson setup\fR explicitly, instead of relying on the default. + .SH EXIT STATUS .TP -- cgit v1.2.3