mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-22 07:23:46 +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.h
|
||||||
colors.txt
|
colors.txt
|
||||||
minetest_mapper
|
minetestmapper
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
CMakeFiles/
|
CMakeFiles/
|
||||||
Makefile
|
Makefile
|
||||||
|
@ -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
|
||||||
|
24
mapper.cpp
24
mapper.cpp
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user