Andrew Robert <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> Hi Everyone. > > > I tried the following to get input into optionparser from either > a file or command line. > > > The code below detects the passed file argument and prints the > file contents but the individual swithces do not get passed to > option parser. > > Doing a test print of options.qmanager shows it unassigned. > > Any ideas? > Check parser.usage, it is likely to look a lot like your infile. I'm not sure, but I think you need to pass your alternative arguments to parser.parse_args. max -- http://mail.python.org/mailman/listinfo/python-list