Changeset 2610
- Timestamp:
- 01/05/06 16:50:38 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/tool.py
r2605 r2610 305 305 else : 306 306 # should never occur 307 raise PyKota ToolError, "Unexpected problem when parsing command line"307 raise PyKotaCommandLineError, "Unexpected problem when parsing command line" 308 308 elif (not args) and (not allownothing) and sys.stdin.isatty() : # no option and no argument, we display help if we are a tty 309 309 self.display_usage_and_quit() 310 310 except getopt.error, msg : 311 self.printInfo(msg) 312 self.display_usage_and_quit() 311 raise PyKotaCommandLineError, str(msg) 313 312 else : 314 313 if parsed["arguments"] or parsed["A"] :