Skip to content

Commit 1ceaa9f

Browse files
bloerwaldShauren
authored andcommitted
Tools/MapExtractor: add -h and add missing newline
(cherry picked from commit 7272e42)
1 parent f9fd802 commit 1ceaa9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tools/map_extractor/System.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void Usage(char const* prg)
9999
"-o set output path (max %d characters)\n"\
100100
"-e extract only MAP(1)/DBC(2)/Camera(4) - standard: all(7)\n"\
101101
"-f height stored as int (less map size but lost some accuracy) 1 by default\n"\
102-
"Example: %s -f 0 -i \"c:\\games\\game\"", prg, MAX_PATH_LENGTH - 1, MAX_PATH_LENGTH - 1, prg);
102+
"Example: %s -f 0 -i \"c:\\games\\game\"\n", prg, MAX_PATH_LENGTH - 1, MAX_PATH_LENGTH - 1, prg);
103103
exit(1);
104104
}
105105

@@ -151,6 +151,11 @@ void HandleArgs(int argc, char* arg[])
151151
else
152152
Usage(arg[0]);
153153
break;
154+
case 'h':
155+
Usage(arg[0]);
156+
break;
157+
default:
158+
break;
154159
}
155160
}
156161
}

0 commit comments

Comments
 (0)