+ ## Show version if necessary
+ if options.version:
+ print '%s - %s' % (PROGRAM_NAME, PROGRAM_VERSION)
+ print
+ print 'Copyright (c) 2005-2007 Ira W. Snyder (devel@irasnyder.com)'
+ print 'This program comes with ABSOLUTELY NO WARRANTY.'
+ print 'This is free software, and you are welcome to redistribute it'
+ print 'under certain conditions. See the file COPYING for details.'
+
+ sys.exit (0)
+
+ ## Run editor if necessary
+ if options.run_editor:
+ editor = os.getenv ('EDITOR')
+
+ if editor != None:
+ os.system ('%s %s' % (editor, options.dict_file))
+ else:
+ logging.critical ('Default editor could not be found!')
+ sys.exit (1)
+
+ sys.exit (0) # successful, but exit anyway
+