Index: pydb/fns.py =================================================================== RCS file: /cvsroot/bashdb/pydb/pydb/fns.py,v retrieving revision 1.17 diff -u -r1.17 fns.py --- pydb/fns.py 13 Jul 2006 07:45:09 -0000 1.17 +++ pydb/fns.py 27 Jul 2006 17:48:29 -0000 @@ -256,6 +256,9 @@ action="store", type='string', help="Write debugger's error output " + "(stderr) to FILE") + optparser.add_option("-e", "--exec", dest="execute", type="string", + help="A comma-separate list of commands to " + + "execute.") # Set up to stop on the first non-option because that's the name # of the script to be debugged on arguments following that are @@ -297,6 +300,9 @@ if opts.command: pydb.setup_source(os.path.expanduser(opts.command), True); + if opts.execute: + pydb.cmdqueue = list(opts.execute.split(',')) + if opts.output: try: pydb.stdout = open(opts.output, 'w')