description='This tool will generate ADS-B data in a form that a hackRF can broadcast. In addition to providing the information at the command the defaults can be changed in the config.cfg file and the the loggin config changed in logging.cfg.'
parser.add_argument('-i','--icao',action='store',type=auto_int,dest='icao',default=cfg.get('plane','icao'),help='The ICAO number for the plane in hex. Ensure the ICAO is prefixed with \'0x\' to ensure this is parsed as a hex number. Default: %(default)s')
parser.add_argument('--lat','--latitude',action='store',type=float,dest='latitude',default=cfg.getfloat('plane','latitude'),help='Latitude for the plane in decminal degrees. Default: %(default)s')
parser.add_argument('--lon','--long','--longitude',action='store',type=float,dest='longitude',default=cfg.getfloat('plane','longitude'),help='Longitude for the place in decminal degrees. Default: %(default)s')
parser.add_argument('-a','--alt','--altitude',action='store',type=float,dest='altitude',default=cfg.getfloat('plane','altitude'),help='Altitude in decminal feet. Default: %(default)s')
parser.add_argument('--ca','--capability',action='store',type=int,dest='capability',default=cfg.getint('plane','capability'),help='The capability. (Think this is always 5 from ADSB messages. More info would be appreciate). Default: %(default)s')
parser.add_argument('--tc','--typecode',action='store',type=int,dest='typecode',default=cfg.getint('plane','typecode'),help='The type for the ADSB messsage. See https://adsb-decode-guide.readthedocs.io/en/latest/content/introduction.html#ads-b-message-types for more information. Default: %(default)s')
parser.add_argument('--ss','--surveillancestatus',action='store',type=int,dest='surveillancestatus',default=cfg.getint('plane','surveillancestatus'),help='The surveillance status. (Think this is always 0 from ADSB messages. More info would be appreciate). Default: %(default)s')
parser.add_argument('--nicsb','--nicsupplementb',action='store',type=int,dest='nicsupplementb',default=cfg.getint('plane','nicsupplementb'),help='The NIC supplement-B.(Think this is always 0 from ADSB messages. More info would be appreciate). Default: %(default)s')
parser.add_argument('--time',action='store',type=int,dest='time',default=cfg.getint('plane','time'),help='The time. (Think this is always 0 from ADSB messages. More info would be appreciate). Default: %(default)s')
parser.add_argument('-s','--surface',action='store',default=cfg.getboolean('plane','surface'),type=auto_bool,dest='surface',help='If the plane is on the ground or not. Default: %(default)s')
parser.add_argument('-o','--out','--output',action='store',type=str,default=cfg.get('general','outputfilename'),dest='outputfilename',help='The iq8s output filename. This is the file which you will feed into the hackRF. Default: %(default)s')
parser.add_argument('-r','--repeats',action='store',dest='repeats',type=int,default=cfg.getint('general','repeats'),help='How many repeats of the data to perform. Default: %(default)s')
parser.add_argument('--csv','--csvfile','--in','--input',action='store',type=str,default=cfg.get('general','csvfile'),dest='csvfile',help='Import a CSV file with the plane data in it. Default: %(default)s')