group=optparse.OptionGroup(parser,"Listener Options","General settings for configuring the listener.")
group.add_option("-v","--verbose",default=False,action="store_true",help="Print to stdout in addition to writing to automatically generated log.")
group.add_option("--log-level",type="int",default=10,help="Sets the verbosity of logging. Default = 10.")
group.add_option("--rootdir",metavar="path",default=".",help="Location where log messages and sqlite database lives")
group.add_option("--tag",metavar="string",default="test",help="Sets the name of the tag used. Default = 'test'")
group.add_option("--sample-rate",type="int",metavar="Hz",default=1,help="Set the sample rate for feature timeseries output, must be a power of 2. Default = 1 Hz.")
group.add_option("--processing-cadence",type="float",default=0.1,help="Rate at which the synchronizer acquires and processes data. Default = 0.1 seconds.")
group.add_option("--request-timeout",type="float",default=0.2,help="Timeout for requesting messages from a topic. Default = 0.2 seconds.")
group.add_option("--kafka-server",metavar="string",help="Sets the server url that the kafka topic is hosted on. Required.")
group.add_option("--input-topic-basename",metavar="string",help="Sets the input kafka topic basename. Required.")
group.add_option("--jobs",action="append",help="Specify jobs to process. Can be given multiple times.")
group.add_option("--data-backend",default="hdf5",help="Choose the backend for data to be stored into, options: [hdf5|influx]. default = hdf5.")
group.add_option("--influx-hostname",help="Specify the hostname for the influxDB database. Required if --data-backend = influx.")
group.add_option("--influx-port",help="Specify the port for the influxDB database. Required if --data-backend = influx.")
group.add_option("--influx-database-name",help="Specify the database name for the influxDB database. Required if --data-backend = influx.")
group.add_option("--data-type",action="append",help="Specify datatypes to aggregate from 'min', 'max', 'median'. Can be given multiple times. Default all")
group.add_option("--num-processes",type="int",default=2,help="Number of processes to use concurrently, default 2.")