mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add -debug arg for parity with cpp version, and add -mn flag to usage().
This commit is contained in:
parent
271662a45f
commit
3f4faae5b5
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,7 @@
|
|||
# map file, however.
|
||||
|
||||
# This is meant eventually to be runnable as part of a cgi system for
|
||||
# letting users generating Crosswords dicts online.
|
||||
# letting users generate Crosswords dicts online.
|
||||
|
||||
|
||||
|
||||
|
@ -799,6 +799,7 @@ sub usage {
|
|||
print STDERR "usage: $0 \n"
|
||||
. "\t[-b bytesPerFile] (default = 0xFFFFFFFF)\n"
|
||||
. "\t-m mapFile\n"
|
||||
. "\t-mn mapFile (unicode)\n"
|
||||
. "\t-ob outFileBase\n"
|
||||
. "\t-sn start node out file\n"
|
||||
. "\t[-if input file name] -- default = stdin\n"
|
||||
|
@ -809,6 +810,7 @@ sub usage {
|
|||
. "\t[-force4](use 4 bytes per node regardless of need)\n"
|
||||
. "\t[-r] (reject words with letters not in mapfile)\n"
|
||||
. "\t[-k] (kill if any letters no in mapfile -- default)\n"
|
||||
. "\t[-debug] (print a bunch of stuff)\n"
|
||||
;
|
||||
|
||||
} # usage
|
||||
|
@ -835,6 +837,7 @@ sub parseARGV {
|
|||
if ($arg =~ /-wc/) {$gCountFile = shift(@ARGV); last SWITCH;}
|
||||
if ($arg =~ /-ns/) {$gBytesPerNodeFile = shift(@ARGV); last SWITCH;}
|
||||
if ($arg =~ /-force4/) {$gForceFour = 1; last SWITCH;}
|
||||
if ($arg =~ /-debug/) {$debug = 1; last SWITCH;}
|
||||
die "unexpected arg $arg\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue