mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 15:03:49 +01:00
Fix usage text and rename executable
This commit is contained in:
parent
35f89df2cd
commit
de94ab8aa6
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
colors.h
|
||||
colors.txt
|
||||
minetest_mapper
|
||||
minetestmapper
|
||||
CMakeCache.txt
|
||||
CMakeFiles/
|
||||
Makefile
|
||||
|
@ -68,13 +68,13 @@ set(mapper_SRCS
|
||||
mapper.cpp
|
||||
)
|
||||
|
||||
add_executable(minetest_mapper
|
||||
add_executable(minetestmapper
|
||||
${mapper_HDRS}
|
||||
${mapper_SRCS}
|
||||
)
|
||||
|
||||
target_link_libraries(
|
||||
minetest_mapper
|
||||
minetestmapper
|
||||
${LIBSQLITE3_LIBRARIES}
|
||||
gd
|
||||
z
|
||||
|
24
mapper.cpp
24
mapper.cpp
@ -19,18 +19,18 @@ using namespace std;
|
||||
|
||||
void usage()
|
||||
{
|
||||
const char *usage_text = "minetestmapper.py [options]\n\
|
||||
-i/--input <world_path>\n\
|
||||
-o/--output <output_image.png>\n\
|
||||
--bgcolor <color>\n\
|
||||
--scalecolor <color>\n\
|
||||
--playercolor <color>\n\
|
||||
--origincolor <color>\n\
|
||||
--drawscale\n\
|
||||
--drawplayers\n\
|
||||
--draworigin\n\
|
||||
--geometry x:y+w+h\n\
|
||||
Color format: '#000000'\n";
|
||||
const char *usage_text = "minetestmapper [options]\n"
|
||||
" -i/--input <world_path>\n"
|
||||
" -o/--output <output_image.png>\n"
|
||||
" --bgcolor <color>\n"
|
||||
" --scalecolor <color>\n"
|
||||
" --playercolor <color>\n"
|
||||
" --origincolor <color>\n"
|
||||
" --drawscale\n"
|
||||
" --drawplayers\n"
|
||||
" --draworigin\n"
|
||||
" --geometry x:y+w+h\n"
|
||||
"Color format: '#000000'\n";
|
||||
std::cout << usage_text;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user