Fix usage text and rename executable
parent
35f89df2cd
commit
de94ab8aa6
|
@ -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