self.addOptionToGroup(commonGroup,'','--display-format',dest='displayFormat',default=DmObject.TEXT_DISPLAY_FORMAT,help='Display format for output objects. Possible options are: %s, %s, and %s (default: %s).'%(DmObject.TEXT_DISPLAY_FORMAT,DmObject.DICT_DISPLAY_FORMAT,DmObject.JSON_DISPLAY_FORMAT,DmObject.TEXT_DISPLAY_FORMAT))
self.addOptionToGroup(commonGroup,'','--display-format',dest='displayFormat',default=DmObject.TEXT_DISPLAY_FORMAT,help='Display format for output objects. Possible options are: %s, %s, and %s (default: %s).'%(DmObject.TEXT_DISPLAY_FORMAT,DmObject.DICT_DISPLAY_FORMAT,DmObject.JSON_DISPLAY_FORMAT,DmObject.TEXT_DISPLAY_FORMAT))
self.addOptionToGroup(commonGroup,'','--display-keys',dest='displayKeys',default=DmObject.DEFAULT_KEYS,help='List of output object keys to display. Possible options are: %s, %s, and string containing comma-separated keys (default: %s, represents class default keys).'%(DmObject.DEFAULT_KEYS,DmObject.ALL_KEYS,DmObject.DEFAULT_KEYS))
self.addOptionToGroup(commonGroup,'','--display-keys',dest='displayKeys',default=DmObject.DEFAULT_KEYS,help='List of output object keys to display. Possible options are: %s, %s, and string containing comma-separated keys (default: %s, represents class default keys).'%(DmObject.DEFAULT_KEYS,DmObject.ALL_KEYS,DmObject.DEFAULT_KEYS))
serviceGroup='Service Options'
self.addOptionGroup(serviceGroup,None)
# These will be set via env variables
self.addOptionToGroup(serviceGroup,'','--service-host',dest='serviceHost',default=self.getDefaultServiceHost(),help='Service host (default: %s, can be set via DM_SERVICE_HOST environment variable).'%self.getDefaultServiceHost())
self.addOptionToGroup(serviceGroup,'','--service-port',dest='servicePort',default=self.getDefaultServicePort(),help='Service port (default: %s, can be set via DM_SERVICE_PORT environment variable).'%self.getDefaultServicePort())
self.addOptionToGroup(serviceGroup,'','--service-protocol',dest='serviceProtocol',default=self.getDefaultServiceProtocol(),help='Service protocol (default: %s, can be set via DM_SERVICE_PROTOCOL environment variable).'%self.getDefaultServiceProtocol())
# SSL options, disabled for now.
#self.addOptionToGroup(commonGroup, '', '--ssl-key', dest='sslKeyFile', help='SSL key file (needed if service requires peer verification, can be set via DM_SSL_KEY_FILE environment variable).')
#self.addOptionToGroup(commonGroup, '', '--ssl-cert', dest='sslCertFile', help='SSL certificate file (needed if service requires peer verification, can be set via DM_SSL_CERT_FILE environment variable).')
#self.addOptionToGroup(commonGroup, '', '--ssl-ca-cert', dest='sslCaCertFile', help='SSL CA certificate file (needed if client requires peer verification, can be set via DM_SSL_CA_CERT_FILE environment variable).')
self.addOptionToGroup(serviceGroup,'','--service-host',dest='serviceHost',default=self.getDefaultServiceHost(),help='Service host (default: %s, can be set via DM_SERVICE_HOST environment variable).'%self.getDefaultServiceHost())
self.addOptionToGroup(serviceGroup,'','--service-port',dest='servicePort',default=self.getDefaultServicePort(),help='Service port (default: %s, can be set via DM_SERVICE_PORT environment variable).'%self.getDefaultServicePort())
self.addOptionToGroup(serviceGroup,'','--service-protocol',dest='serviceProtocol',default=self.getDefaultServiceProtocol(),help='Service protocol (default: %s, can be set via DM_SERVICE_PROTOCOL environment variable).'%self.getDefaultServiceProtocol())
# SSL options, disabled for now.
#self.addOptionToGroup(commonGroup, '', '--ssl-key', dest='sslKeyFile', help='SSL key file (needed if service requires peer verification, can be set via DM_SSL_KEY_FILE environment variable).')
#self.addOptionToGroup(commonGroup, '', '--ssl-cert', dest='sslCertFile', help='SSL certificate file (needed if service requires peer verification, can be set via DM_SSL_CERT_FILE environment variable).')
#self.addOptionToGroup(commonGroup, '', '--ssl-ca-cert', dest='sslCaCertFile', help='SSL CA certificate file (needed if client requires peer verification, can be set via DM_SSL_CA_CERT_FILE environment variable).')