Fix usage text and rename executable

master
ShadowNinja 2013-07-29 12:16:08 -04:00
parent 35f89df2cd
commit de94ab8aa6
3 changed files with 15 additions and 15 deletions

2
.gitignore vendored
View File

@ -1,6 +1,6 @@
colors.h colors.h
colors.txt colors.txt
minetest_mapper minetestmapper
CMakeCache.txt CMakeCache.txt
CMakeFiles/ CMakeFiles/
Makefile Makefile

View File

@ -68,13 +68,13 @@ set(mapper_SRCS
mapper.cpp mapper.cpp
) )
add_executable(minetest_mapper add_executable(minetestmapper
${mapper_HDRS} ${mapper_HDRS}
${mapper_SRCS} ${mapper_SRCS}
) )
target_link_libraries( target_link_libraries(
minetest_mapper minetestmapper
${LIBSQLITE3_LIBRARIES} ${LIBSQLITE3_LIBRARIES}
gd gd
z z

View File

@ -19,18 +19,18 @@ using namespace std;
void usage() void usage()
{ {
const char *usage_text = "minetestmapper.py [options]\n\ const char *usage_text = "minetestmapper [options]\n"
-i/--input <world_path>\n\ " -i/--input <world_path>\n"
-o/--output <output_image.png>\n\ " -o/--output <output_image.png>\n"
--bgcolor <color>\n\ " --bgcolor <color>\n"
--scalecolor <color>\n\ " --scalecolor <color>\n"
--playercolor <color>\n\ " --playercolor <color>\n"
--origincolor <color>\n\ " --origincolor <color>\n"
--drawscale\n\ " --drawscale\n"
--drawplayers\n\ " --drawplayers\n"
--draworigin\n\ " --draworigin\n"
--geometry x:y+w+h\n\ " --geometry x:y+w+h\n"
Color format: '#000000'\n"; "Color format: '#000000'\n";
std::cout << usage_text; std::cout << usage_text;
} }