dfhack-run: add note about installation when called with no arguments

develop
lethosor 2019-07-13 15:51:46 -04:00
parent c125926727
commit b60faa8021
1 changed files with 14 additions and 1 deletions

@ -63,7 +63,20 @@ int main (int argc, char *argv[])
if (argc <= 1)
{
fprintf(stderr, "Usage: dfhack-run <command> [args...]\n");
fprintf(stderr, "Usage: dfhack-run <command> [args...]\n\n");
fprintf(stderr, "Note: this command does not start DFHack; it is intended to connect\n"
"to a running DFHack instance. If you were trying to start DFHack, run\n"
#ifdef _WIN32
" Dwarf Fortress.exe\n"
#else
" ./dfhack\n"
#endif
"or see the documentation in hack/docs/index.html for more help.\n"
);
#ifdef _WIN32
fprintf(stderr, "\nPress Enter to quit.\n");
fgetc(stdin);
#endif
return 2;
}