diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-10-15 16:46:57 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-10-15 16:46:57 +0400 |
commit | 0f5eae2c6472db561d2add8eb4e7b9202d0667db (patch) | |
tree | 69235d3e1afc6e09d822b405739a34bb6eead627 /source/gameengine | |
parent | 74aa13e29a442f4ddd82549a5a8f580bb4e78e45 (diff) |
added -h to the commandline args to print usage.
Kent
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index aac72a8bd4f..5f702041c41 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -107,6 +107,7 @@ void usage(char* program) printf("usage: %s [-w [-p l t w h]] %s[-g gamengineoptions] " "[-s stereomode] filename.blend\n", program, consoleoption); + printf(" -h: Prints this command summary\n"); printf(" -w: display in a window\n"); printf(" -p: specify window position\n"); printf(" l = window left coordinate\n"); @@ -366,6 +367,10 @@ int main(int argc, char** argv) i++; } break; + case 'h': + usage(argv[0]); + return 0; + break; case 'c': i++; closeConsole = false; |