"cheat" now has command-line arguments for generating cheat files

-d number of deaths. Signed integer value
-s number of saves. Signed integer value
-o file name of save game to write
This commit is contained in:
Aaron Traas 2017-06-27 10:33:10 -04:00 committed by Eric S. Raymond
parent 894b3de949
commit 7392603b7d
2 changed files with 52 additions and 7 deletions

View file

@ -38,7 +38,7 @@ buildregress:
rm -f scratch.tmp
regress:
$(ECHO) -n "Generate cheat file: "
../cheat
../cheat -d -1000 -o cheat_numdie.adv
@for file in $(TESTLOADS); do \
$(ECHO) -n " $${file} "; grep '##' $${file}.log || echo ' ## (no description)'; \
OPTS=`sed -n /#options:/s///p <$${file}.log`; \