From: Bryan Richardson Date: 2007-12-21T04:26:37+09:00 Subject: OptionParser Question ------=_Part_7520_16296051.1198178801815 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello all, I'm using OptionParser to parse command line options. I've figured out how to handle options for each flag (i.e. opts.on('--port PORT')), but I'm not sure how to handle command line arguments that aren't associated with a flag. For example, say I wanted to parse a file with my file_parser executable using a certain type of parser. I'd like to say "file_parser --type CDF ". I know how to get the type of parser to use (see above), but I'm not so sure how to easily get the name of the file I want to parse. Any suggestions? Thanks! -- BTR ------=_Part_7520_16296051.1198178801815--