From 9d4a90728171d1e2f89f2e85b15e76e1385073ed Mon Sep 17 00:00:00 2001 From: iknowsomething <5054918+iknowsomething@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:57:38 +0300 Subject: [PATCH] maputil: fix newlines in "usage" text message --- maputil/maputil.cc | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/maputil/maputil.cc b/maputil/maputil.cc index b5772955..f158cdf7 100644 --- a/maputil/maputil.cc +++ b/maputil/maputil.cc @@ -61,27 +61,27 @@ map_file_t LoadMapOrEntFile(const fs::path &source) return map; } -constexpr const char *usage = "\ -usage: maputil [operations...]\ -\ ---script \"\"\ - perform a query on entities and print out matching results.\ - see docs for more details on globals.\ - note that query has the same access as script\ - but is more suitable for small read-only operations.\ ---strip_extended_info\ - removes extended Quake II/III information on faces.\ ---convert \ - convert the current map to the given format.\ ---save \"\"\ - save the current map to the given output path.\ ---game \ - set the current game; used for certain conversions\ - or operations.\ -"; +constexpr const char *usage = R"( +usage: maputil [operations...] + +--script "" + execute the given Lua script. +valid operations: +--query "" + perform a query on entities and print out matching results. + see docs for more details on globals. + note that query has the same access as script + but is more suitable for small read-only operations. +--strip_extended_info + removes extended Quake II/III information on faces. +--convert + convert the current map to the given format. +--save "" + save the current map to the given output path. +--game + set the current game; used for certain conversions + or operations. +)"; #ifdef USE_LUA using array_iterate_callback = std::function;