parser.add_option('--noautologin', action = 'store_false', dest = 'autologin', help = 'Disable autologin of Digsby')
parser.add_option('--noautologin-accounts', '--noautologin_accounts', action = 'store_false', dest = 'autologin_accounts', help = 'Disable autologin of accounts')
parser.add_option('--measure', type = 'string', help = 'Measure timings of certain actions')
parser.add_option('--register', action = 'store_true', help = 'Show the register page on startup')
parser.add_option('--portable', action = 'store_true', dest = 'allow_portable', help = 'Allows the program to load info for "portable" mode')
parser.add_option('--username', help = 'Username to login with')
parser.add_option('--password', help = 'Password to login with')
parser.add_option('--resource', help = 'Resource to login with')
parser.add_option('--lang', help = 'Language code (i.e., es_DO) to show interface in')
behave_group.add_option('--multi', action = 'store_false', dest = 'single_instance', help = 'disable single-instance checker')
behave_group.add_option('--single', action = 'store_true', dest = 'single_instance', help = 'enable single-instance checker on dev')
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)')
behave_group.add_option('--server', help = 'adds a server to the start login sequence')
behave_group.add_option('--loadbalancer', help = 'forces digsby to use a specific load balancer')
debug_group.add_option('--profile', type = 'int', help = 'profiling level [default: %default]')
debug_group.add_option('--profile1', action = 'store_const', const = 1, dest = 'profile', help = 'profiling level 1')
debug_group.add_option('--profile2', action = 'store_const', const = 2, dest = 'profile', help = 'profiling level 2')
debug_group.add_option('--nocpuwatch', '--no-cpuwatch', action = 'store_false', dest = 'cpuwatch', help = 'disable CPUWatch')
debug_group.add_option('--no-force-exit', action = 'store_false', dest = 'force_exit', help = 'disable forceful exit if Digsby hangs on quit')
debug_group.add_option('--quickexit', action = 'store_true', help = 'always exit forcefully')
debug_group.add_option('--full-crashdump', action = 'store_true', dest = 'full_crashdump', help = 'enable full crash dumps')
debug_group.add_option('--crashdump-dir', dest = 'crashdump_dir', help = 'specify the directory crash dumps will be saved to')
debug_group.add_option('--no-crashsubmit', action = 'store_false', dest = 'submit_crashdump', help = 'disable crash minidump submission')
debug_group.add_option('--color', action = 'store_true', dest = 'console_color', help = 'enable color console output')
debug_group.add_option('--no-plugins', '--no_plugins', action = 'store_false', dest = 'load_plugins', help = 'disable plugin loading')
debug_group.add_option('--no-traceback-dialog', action = 'store_false', dest = 'traceback_dialog', help = 'disables the traceback dialog')
debug_group.add_option('--heapy', action = 'store_true', dest = 'heapy', help = 'enables Heapy on the console')
debug_group.add_option('--track-windowids', action = 'store_true', dest = 'track_windowids', help = 'sends window id allocation locations in bug reports')
debug_group.add_option('--debugads', action = 'store_true', help = 'logs more information about ads being loaded')
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]')
logging_group.add_option('--no-log', dest = 'no_log', action = 'store_true', help = 'Tells the logger to log nothing.')
logging_group.add_option('--no-log-limit', dest = 'limit_log', action = 'store_false', help = 'The log will not be rate limited on stdout.')
logging_group.add_option('--release-logging', dest = 'release_logging', action = 'store_true')
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')
update_group = optparse.OptionGroup(parser, 'Update Options', 'Options dealing with behavior after an update.')
update_group.add_option('--force-update', action = 'store_true', dest = 'force_update', help = 'Force an update & integrity check of application files')
update_group.add_option('--updated', action = 'store_true', help = 'Update Successful')
update_group.add_option('--norestart', '--no-restart', '--no_restart', action = 'store_false', dest = 'do_restart', help = 'disable restart after an update')
update_group.add_option('--noupdate', '--no-update', '--no_update', action = 'store_false', dest = 'allow_update', help = 'disable update check')
update_group.add_option('--update_failed', action = 'store_true', dest = 'update_failed', help = 'signifies an update has failed to be installed')
reflexive_group = optparse.OptionGroup(parser, 'Reflexive Options', 'Options designed for Digsby to call itself with. It is believed that some of them bite.')
reflexive_group.add_option('--crashreport', type = 'string')
reflexive_group.add_option('--crashuser', type = 'string')
reflexive_group.add_option('--crashuniquekey', type = 'string')
reflexive_group.add_option('--no-crashreport', action = 'store_false', dest = 'crashreporting')
parser.set_defaults(crashreporting = True)
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.")
plura_group.add_option('--set-plura-enabled', action = 'store_true', dest = 'set_plura_option')
plura_group.add_option('--set-plura-disabled', action = 'store_false', dest = 'set_plura_option')