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.txt
minetest_mapper
minetestmapper
CMakeCache.txt
CMakeFiles/
Makefile

View File

@ -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

View File

@ -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;
}