<arg choice='opt'>-r <replaceable>filename</replaceable></arg>
<arg choice='opt'>-t </arg>
<arg choice='opt'>-x </arg>
+ <arg choice='opt'>-V </arg>
<arg rep='repeat' ><replaceable>command</replaceable></arg>
</cmdsynopsis>
<para>The option -x enables some debugging features of interest
probably only to sst2k developers.</para>
+<para>With -V, the program emits its version and exits.</para>
+
<para>Input tokens for the setup prompts will be read from the
remainder of the command line before standard input. Thus, for
example, you can invoke the program as</para>
"""
import os, sys, math, curses, time, readline, cPickle, random, copy, gettext, getpass
+version="2.0"
+
docpath = (".", "../doc", "/usr/share/doc/sst")
def _(str): return gettext.gettext(str)
else:
game.options |= OPTION_TTY
seed = int(time.time())
- (options, arguments) = getopt.getopt(sys.argv[1:], "r:s:tx")
+ (options, arguments) = getopt.getopt(sys.argv[1:], "r:s:txV")
for (switch, val) in options:
if switch == '-r':
try:
game.options &=~ OPTION_CURSES
elif switch == '-x':
idebug = True
+ elif switch == '-V':
+ print "SST2K", version
+ raise SystemExit, 0
else:
sys.stderr.write("usage: sst [-t] [-x] [startcommand...].\n")
raise SystemExit, 1