(parse_args): fix the print usage for script file name to print the
default instead of the current file name as per the description.
This commit is contained in:
parent
2629b92102
commit
750f351a94
1 changed files with 4 additions and 3 deletions
|
@ -94,7 +94,8 @@ static int quiet = 0;
|
||||||
static void qprint(const char * const fmt, ...)
|
static void qprint(const char * const fmt, ...)
|
||||||
ATTRIBUTE((format (printf, 1, 2)));
|
ATTRIBUTE((format (printf, 1, 2)));
|
||||||
|
|
||||||
static const char *outfile = "newcap_script";
|
#define DEFAULT_OUTFILE_NAME "newcap_script"
|
||||||
|
static const char *outfile = DEFAULT_OUTFILE_NAME;
|
||||||
/* mark the continents with a * so you can tell them
|
/* mark the continents with a * so you can tell them
|
||||||
from the islands 1 = mark, 0 = don't mark. */
|
from the islands 1 = mark, 0 = don't mark. */
|
||||||
static int AIRPORT_MARKER = 0;
|
static int AIRPORT_MARKER = 0;
|
||||||
|
@ -316,8 +317,8 @@ parse_args(int argc, char *argv[])
|
||||||
puts("-q = quiet, -o = no ore produced");
|
puts("-q = quiet, -o = no ore produced");
|
||||||
puts("-a = Airport marker for continents, -i = islands not distinct");
|
puts("-a = Airport marker for continents, -i = islands not distinct");
|
||||||
puts("-R = seed to use for random, -e = read config file");
|
puts("-R = seed to use for random, -e = read config file");
|
||||||
printf("-s = name of script (default %s)\n",
|
printf("-s = name of script (default = %s)\n",
|
||||||
outfile);
|
DEFAULT_OUTFILE_NAME);
|
||||||
puts("nc = number of continents [MANDATORY]");
|
puts("nc = number of continents [MANDATORY]");
|
||||||
puts("sc = continent size [MANDATORY]");
|
puts("sc = continent size [MANDATORY]");
|
||||||
puts("ni = number of islands (default = nc)");
|
puts("ni = number of islands (default = nc)");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue