zephyr_mirror: Suppress help for options users shouldn't use.

(imported from commit 62dc96147f2d4a706ff2570653ce3ad727d56967)
This commit is contained in:
Tim Abbott 2012-10-29 14:07:56 -04:00
parent 955f7ac9d8
commit d03cdd2a1d
1 changed files with 8 additions and 0 deletions

View File

@ -19,26 +19,32 @@ parser = optparse.OptionParser()
parser.add_option('--forward-class-messages', parser.add_option('--forward-class-messages',
dest='forward_class_messages', dest='forward_class_messages',
default=False, default=False,
help=optparse.SUPPRESS_HELP,
action='store_true') action='store_true')
parser.add_option('--resend-log', parser.add_option('--resend-log',
dest='resend_log', dest='resend_log',
default=False, default=False,
help=optparse.SUPPRESS_HELP,
action='store_true') action='store_true')
parser.add_option('--enable-log', parser.add_option('--enable-log',
dest='enable_log', dest='enable_log',
default=False, default=False,
help=optparse.SUPPRESS_HELP,
action='store_true') action='store_true')
parser.add_option('--no-forward-personals', parser.add_option('--no-forward-personals',
dest='forward_personals', dest='forward_personals',
help=optparse.SUPPRESS_HELP,
default=True, default=True,
action='store_false') action='store_false')
parser.add_option('--forward-from-humbug', parser.add_option('--forward-from-humbug',
dest='forward_from_humbug', dest='forward_from_humbug',
default=False, default=False,
help=optparse.SUPPRESS_HELP,
action='store_true') action='store_true')
parser.add_option('--verbose', parser.add_option('--verbose',
dest='verbose', dest='verbose',
default=False, default=False,
help=optparse.SUPPRESS_HELP,
action='store_true') action='store_true')
parser.add_option('--sync-subscriptions', parser.add_option('--sync-subscriptions',
dest='sync_subscriptions', dest='sync_subscriptions',
@ -47,10 +53,12 @@ parser.add_option('--sync-subscriptions',
parser.add_option('--site', parser.add_option('--site',
dest='site', dest='site',
default="https://humbughq.com", default="https://humbughq.com",
help=optparse.SUPPRESS_HELP,
action='store') action='store')
parser.add_option('--user', parser.add_option('--user',
dest='user', dest='user',
default=os.environ["USER"], default=os.environ["USER"],
help=optparse.SUPPRESS_HELP,
action='store') action='store')
parser.add_option('--api-key-file', parser.add_option('--api-key-file',
dest='api_key_file', dest='api_key_file',