home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2012 January / maximum-cd-2012-01.iso / DiscContents / digsby_setup.exe / lib / options.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-10-05  |  7.2 KB  |  94 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import optparse
  5. import sys
  6.  
  7. class NonExitingOptionParser(optparse.OptionParser):
  8.     
  9.     def exit(self, code = None, message = None):
  10.         if code is None and message is None:
  11.             return optparse.OptionParser.exit(self, code, message)
  12.         print >>sys.stderr, 'Error processing options: code = %r, message = %r' % (code, message)
  13.  
  14.  
  15. parser = NonExitingOptionParser(prog = 'Digsby', version = '%%prog r%s' % getattr(sys, 'REVISION', 'dev'))
  16. parser.add_option('--noautologin', action = 'store_false', dest = 'autologin', help = 'Disable autologin of Digsby')
  17. parser.add_option('--noautologin-accounts', '--noautologin_accounts', action = 'store_false', dest = 'autologin_accounts', help = 'Disable autologin of accounts')
  18. parser.add_option('--measure', type = 'string', help = 'Measure timings of certain actions')
  19. parser.add_option('--register', action = 'store_true', help = 'Show the register page on startup')
  20. parser.add_option('--portable', action = 'store_true', dest = 'allow_portable', help = 'Allows the program to load info for "portable" mode')
  21. parser.add_option('--username', help = 'Username to login with')
  22. parser.add_option('--password', help = 'Password to login with')
  23. parser.add_option('--resource', help = 'Resource to login with')
  24. parser.add_option('--lang', help = 'Language code (i.e., es_DO) to show interface in')
  25. parser.set_defaults(autologin = True, autologin_accounts = True, register = False, allow_portable = False)
  26. parser.add_option('--action')
  27. behave_group = optparse.OptionGroup(parser, 'Behavioral Options')
  28. behave_group.add_option('--multi', action = 'store_false', dest = 'single_instance', help = 'disable single-instance checker')
  29. behave_group.add_option('--single', action = 'store_true', dest = 'single_instance', help = 'enable single-instance checker on dev')
  30. behave_group.add_option('--start-offline', '--offline', action = 'store_true', dest = 'start_offline', help = 'forces the initial login to be an offline one. (only works in DEV mode)')
  31. behave_group.add_option('--server', help = 'adds a server to the start login sequence')
  32. behave_group.add_option('--loadbalancer', help = 'forces digsby to use a specific load balancer')
  33. parser.set_defaults(start_offline = False)
  34. debug_group = optparse.OptionGroup(parser, 'Debugging Options')
  35. debug_group.add_option('--profile', type = 'int', help = 'profiling level [default: %default]')
  36. debug_group.add_option('--profile1', action = 'store_const', const = 1, dest = 'profile', help = 'profiling level 1')
  37. debug_group.add_option('--profile2', action = 'store_const', const = 2, dest = 'profile', help = 'profiling level 2')
  38. debug_group.add_option('--nocpuwatch', '--no-cpuwatch', action = 'store_false', dest = 'cpuwatch', help = 'disable CPUWatch')
  39. debug_group.add_option('--no-force-exit', action = 'store_false', dest = 'force_exit', help = 'disable forceful exit if Digsby hangs on quit')
  40. debug_group.add_option('--quickexit', action = 'store_true', help = 'always exit forcefully')
  41. debug_group.add_option('--full-crashdump', action = 'store_true', dest = 'full_crashdump', help = 'enable full crash dumps')
  42. debug_group.add_option('--crashdump-dir', dest = 'crashdump_dir', help = 'specify the directory crash dumps will be saved to')
  43. debug_group.add_option('--no-crashsubmit', action = 'store_false', dest = 'submit_crashdump', help = 'disable crash minidump submission')
  44. debug_group.add_option('--color', action = 'store_true', dest = 'console_color', help = 'enable color console output')
  45. debug_group.add_option('--no-plugins', '--no_plugins', action = 'store_false', dest = 'load_plugins', help = 'disable plugin loading')
  46. debug_group.add_option('--no-traceback-dialog', action = 'store_false', dest = 'traceback_dialog', help = 'disables the traceback dialog')
  47. debug_group.add_option('--heapy', action = 'store_true', dest = 'heapy', help = 'enables Heapy on the console')
  48. debug_group.add_option('--track-windowids', action = 'store_true', dest = 'track_windowids', help = 'sends window id allocation locations in bug reports')
  49. debug_group.add_option('--debugads', action = 'store_true', help = 'logs more information about ads being loaded')
  50. parser.set_defaults(profile = 0, cpuwatch = True, force_exit = True, submit_crashdump = True, console_color = False, load_plugins = True, traceback_dialog = True, heapy = False, track_windowids = False, debugads = False)
  51. logging_group = optparse.OptionGroup(parser, 'Logging Options')
  52. logging_group.add_option('-v', '--verbose', '--full-log', '--full_log', dest = 'full_log', action = 'store_true', help = 'Tells the logger to log everything.  Disables the hiding (from the logger) of many possibly sensitive pieces of information, such as IM messages and the contents of streams to the server.  WARNING: increases CPU and disk activity.  [default: %default]')
  53. logging_group.add_option('--no-log', dest = 'no_log', action = 'store_true', help = 'Tells the logger to log nothing.')
  54. logging_group.add_option('--no-log-limit', dest = 'limit_log', action = 'store_false', help = 'The log will not be rate limited on stdout.')
  55. logging_group.add_option('--release-logging', dest = 'release_logging', action = 'store_true')
  56. logging_group.add_option('--log-buffer', type = 'int', dest = 'log_buffer', help = 'The number of log messages to keep in memory before writing to disk')
  57. parser.set_defaults(full_log = False, limit_log = True, release_logging = False, log_buffer = 0)
  58. update_group = optparse.OptionGroup(parser, 'Update Options', 'Options dealing with behavior after an update.')
  59. update_group.add_option('--force-update', action = 'store_true', dest = 'force_update', help = 'Force an update & integrity check of application files')
  60. update_group.add_option('--updated', action = 'store_true', help = 'Update Successful')
  61. update_group.add_option('--norestart', '--no-restart', '--no_restart', action = 'store_false', dest = 'do_restart', help = 'disable restart after an update')
  62. update_group.add_option('--noupdate', '--no-update', '--no_update', action = 'store_false', dest = 'allow_update', help = 'disable update check')
  63. update_group.add_option('--update_failed', action = 'store_true', dest = 'update_failed', help = 'signifies an update has failed to be installed')
  64. update_group.add_option('--updatetag')
  65. parser.set_defaults(updated = False, do_restart = True, force_update = False, allow_update = True, update_failed = False, updatetag = None)
  66. reflexive_group = optparse.OptionGroup(parser, 'Reflexive Options', 'Options designed for Digsby to call itself with.  It is believed that some of them bite.')
  67. reflexive_group.add_option('--crashreport', type = 'string')
  68. reflexive_group.add_option('--crashuser', type = 'string')
  69. reflexive_group.add_option('--crashuniquekey', type = 'string')
  70. reflexive_group.add_option('--no-crashreport', action = 'store_false', dest = 'crashreporting')
  71. parser.set_defaults(crashreporting = True)
  72. plura_group = optparse.OptionGroup(parser, 'Plura options', "These options are to cause the app to set/unset plura processing. Pretty much only used for the installer to pass in the user's choice.")
  73. plura_group.add_option('--set-plura-enabled', action = 'store_true', dest = 'set_plura_option')
  74. plura_group.add_option('--set-plura-disabled', action = 'store_false', dest = 'set_plura_option')
  75. parser.set_defaults(set_plura_option = None)
  76. twitter_group = optparse.OptionGroup(parser, 'Twitter Options')
  77. twitter_group.add_option('--dbsnapshot', type = 'string')
  78. twitter_group.add_option('--savesnapshots', action = 'store_true')
  79. parser.set_defaults(twitter_offline = False, dnsnapshot = '', savesnapshots = False)
  80. noop_group = optparse.OptionGroup(parser, 'No-ops', description = 'quiets some problems when running unit tests')
  81. noop_group.add_option('--verbosity', action = 'store')
  82. parser.add_option_group(behave_group)
  83. parser.add_option_group(debug_group)
  84. parser.add_option_group(logging_group)
  85. parser.add_option_group(update_group)
  86. parser.add_option_group(reflexive_group)
  87. parser.add_option_group(plura_group)
  88. parser.add_option_group(twitter_group)
  89. parser.add_option_group(noop_group)
  90. if __name__ == '__main__':
  91.     parser.print_help()
  92.     print parser.parse_args()
  93.  
  94.