Changeset 802
- Timestamp:
- 12/15/2005 07:29:14 PM (3 years ago)
- Files:
-
- 1 modified
-
eddie/trunk/bin/eddie.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
eddie/trunk/bin/eddie.py
r793 r802 332 332 # define usage and version messages 333 333 usageMsg = "usage: %prog [options]" 334 versionMsg = """EDDIE (c) Chris Miles and Rod Telford 1998-2002 335 chris@psychofx.com / rtelford@psychofx.com 336 Version: %s""" % __version__ 337 334 versionMsg = """EDDIE Tool %s""" % __version__ 335 338 336 # get a parser object and define our options 339 337 parser = optparse.OptionParser(usage=usageMsg, version=versionMsg) … … 346 344 parser.set_defaults(showconfig=False, verbose=False, \ 347 345 config=default_config_file) 348 346 349 347 # Parse. We dont accept arguments, so we complain if they're found. 350 348 (options, args) = parser.parse_args() 351 349 if len(args) != 0: 352 parser.error() 353 if options.version == True: 354 print(versionMsg) 355 eddieexit() 350 parser.error('No extra arguments should be given') 351 356 352 # All good - return the option dict 357 353 return options
