Support execution of command script arguments.

This commit is contained in:
Eric S. Raymond 2022-04-05 08:31:10 -04:00
parent 8378063198
commit bb2b8e0fca
7 changed files with 80 additions and 9 deletions

View file

@ -5,7 +5,7 @@
advent - Colossal Cave Adventure
== SYNOPSIS ==
*advent* [-l logfile] [-o] [-r savefile]
*advent* [-l logfile] [-o] [-r savefile] [script...]
== DESCRIPTION ==
The original Colossal Cave Adventure from 1976-77 was the origin of all
@ -46,6 +46,10 @@ There have been no gameplay changes.
Also ignores new-school one-letter commands l, x, g, z, i. Also
case-smashes and truncates unrecognized text when echoed.
Normally, game input is taken from standard input. If script file
arguments are given, input is taken fron them instead. A script file
argument of '-' is taken as a directive to read from standard input.
== BUGS ==
The binary save file format is fragile, dependent on your machine word