#NEWLINE# def generate_option_group( parser , prefix = '' ) : #NEWLINE# #INDENT# group = optparse . OptionGroup ( parser , 'Zulip API configuration' ) #NEWLINE# group . add_option ( ( '--%ssite' % ( prefix , ) ) , dest = 'zulip_site' , help = 'Zulip server URI' , default = None ) #NEWLINE# group . add_option ( ( '--%sapi-key' % ( prefix , ) ) , dest = 'zulip_api_key' , action = 'store' ) #NEWLINE# group . add_option ( ( '--%suser' % ( group , ) ) , dest = 'zulip_email' , help = 'Email address of the calling bot or user.' ) #NEWLINE# group . add_option ( ( '--%sconfig-file' % ( prefix , ) ) , action = 'store' , dest = 'zulip_config_file' , help = 'Location of an ini file containing the\nabove information. (default ~/.zuliprc)' ) #NEWLINE# group . add_option ( '-v' , '--verbose' , action = 'store_true' , help = 'Provide detailed output.' ) #NEWLINE# group . add_option ( ( '--%sclient' % ( prefix , ) ) , action = 'store' , default = None , dest = 'zulip_client' , help = optparse . SUPPRESS_HELP ) #NEWLINE# group . add_option ( '--insecure' , action = 'store_true' , dest = 'insecure' , help = 'Do not verify the server certificate.\n                          The https connection will not be secure.' ) #NEWLINE# group . add_option ( '--cert-bundle' , action = 'store' , dest = 'cert_bundle' , help = "Specify a file containing either the\n                          server certificate, or a set of trusted\n                          CA certificates. This will be used to\n                          verify the server's identity. All\n                          certificates should be PEM encoded." ) #NEWLINE# return group