maputil: fix newlines in "usage" text message

This commit is contained in:
iknowsomething 2023-11-17 20:57:38 +03:00 committed by Eric Wasylishen
parent bf50e0d604
commit 9d4a907281
1 changed files with 21 additions and 21 deletions

View File

@ -61,27 +61,27 @@ map_file_t LoadMapOrEntFile(const fs::path &source)
return map;
}
constexpr const char *usage = "\
usage: maputil [operations...]\
\
--script \"<path to Lua script file\"\
execute the given Lua script.\
valid operations:\
--query \"<Lua expression>\"\
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 <quake | valve | etp | bp>\
convert the current map to the given format.\
--save \"<output path>\"\
save the current map to the given output path.\
--game <quake | quake2 | hexen2 | halflife>\
set the current game; used for certain conversions\
or operations.\
";
constexpr const char *usage = R"(
usage: maputil [operations...]
--script "<path to Lua script file>"
execute the given Lua script.
valid operations:
--query "<Lua expression>"
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 <quake | valve | etp | bp>
convert the current map to the given format.
--save "<output path>"
save the current map to the given output path.
--game <quake | quake2 | hexen2 | halflife>
set the current game; used for certain conversions
or operations.
)";
#ifdef USE_LUA
using array_iterate_callback = std::function<bool(lua_State *state, size_t index)>;