1
0
mirror of https://github.com/luanti-org/minetestmapper.git synced 2025-12-16 13:05:41 +01:00

Make options documentation consistent

also resolve confusion between Y axis on image vs. in-game
This commit is contained in:
sfan5
2025-04-07 22:58:58 +02:00
parent 458c3c30a0
commit 314debe4fb
3 changed files with 58 additions and 40 deletions

View File

@@ -15,9 +15,9 @@
static void usage()
{
const std::pair<const char*, const char*> options[] = {
{"-i/--input", "<world_path>"},
{"-o/--output", "<output_image>"},
static const std::pair<const char*, const char*> options[] = {
{"-i/--input", "<path>"},
{"-o/--output", "<path>"},
{"--bgcolor", "<color>"},
{"--scalecolor", "<color>"},
{"--playercolor", "<color>"},
@@ -28,13 +28,14 @@ static void usage()
{"--drawalpha", ""},
{"--noshading", ""},
{"--noemptyimage", ""},
{"-v/--verbose", ""},
{"--min-y", "<y>"},
{"--max-y", "<y>"},
{"--backend", "<backend>"},
{"--geometry", "x:y+w+h"},
{"--geometry", "x:z+w+h"},
{"--extent", ""},
{"--zoom", "<zoomlevel>"},
{"--colors", "<colors.txt>"},
{"--zoom", "<factor>"},
{"--colors", "<path>"},
{"--scales", "[t][b][l][r]"},
{"--exhaustive", "never|y|full|auto"},
{"--dumpblock", "x,y,z"},
@@ -57,6 +58,11 @@ static void usage()
for (auto s : backends)
printf("%s ", s.c_str());
printf("\n");
#ifdef _WIN32
printf("See also the full documentation in README.rst\n");
#else
printf("See also the full documentation in minetestmapper(6) or README.rst\n");
#endif
}
static inline bool file_exists(const std::string &path)