diff --git a/twander.py b/twander.py index 4867b13..10b731d 100755 --- a/twander.py +++ b/twander.py @@ -4,7 +4,7 @@ PROGNAME = "twander" -RCSID = "$Id: twander.py,v 1.33 2002/11/09 05:47:45 tundra Exp $" +RCSID = "$Id: twander.py,v 1.34 2002/11/09 06:07:28 tundra Exp $" VERSION = RCSID.split()[2] @@ -129,16 +129,18 @@ ##### uTable = [PROGNAME + " " + VERSION + " - Copyright 2002, TundraWare Inc., All Rights Reserved\n", - "usage: " + PROGNAME + " [-d dir] [-hv] [startdir] where,\n", - " startdir name of directory in which to begin (default: current dir)", - " -b color background color", - " -c file name of configuration file (default: " + CONF + ")", - " -f color foreground color", - " -h print this help information", - " -n name name of font to use", - " -s size size of font to use", - " -v print detailed version information", - " -w wght weight/style of font to use", + "usage: " + PROGNAME + " [-bcfhnsvwxy] [startdir] where,\n", + " startdir name of directory in which to begin (default: current dir)", + " -b color background color (default: black)", + " -c file name of configuration file (default: " + CONF + ")", + " -f color foreground color (default: green)", + " -h print this help information", + " -n name name of font to use (default: courier)", + " -s size size of font to use (default: 12)", + " -v print detailed version information", + " -w wght weight/style of font to use (default: bold)", + " -x width window width (default: 60)", + " -y height window height (default: 25)", ] @@ -402,7 +404,7 @@ # Command line processing try: - opts, args = getopt.getopt(sys.argv[1:], '-b:c:f:hn:s:vw:') + opts, args = getopt.getopt(sys.argv[1:], '-b:c:f:hn:s:vw:x:y:') except getopt.GetoptError: Usage() sys.exit(1) @@ -428,6 +430,11 @@ sys.exit(0) if opt == "-w": FWT = val + if opt == "-x": + WIDTH = val + if opt == "-y": + HEIGHT = val + # Can only have 0 or 1 arguments # Make sure any starting directory argument is legit