Parsing typical Windows command lines with optparse?
Thomas Heller <[email protected]> Tue, 06 Dec 2005 09:31:28 +0100
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Is it possible to use optparse to parse typical Windows command lines? Typical behaviour is like this: - options are case insensitive: /RegServer is the same as /regserver - use of '-' or '/' character for an option: -regserver is the same as /regserver I have used my own hacked version of getopt for this behaviour, but I'm missing the flexibility of optparse. Thomas ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click