parser.add_argument('--baud-flightstack',action="store",default="57600",help="Comma-separated list of baud rate of the serial port (default is 57600) when communicating with flight stack (Mavlink or NSH), only required for true serial ports.")
parser.add_argument('--force',action='store_true',default=False,help='Override board type check, or silicon errata checks and continue loading')
parser.add_argument('--boot-delay',type=int,default=None,help='minimum boot delay to store in flash')
parser.add_argument('--use-protocol-splitter-format',action='store_true',help='use protocol splitter format for reboot')
parser.add_argument('firmware',action="store",help="Firmware file to be uploaded")
args=parser.parse_args()
ifargs.use_protocol_splitter_format:
print("Using protocol splitter format to reboot pixhawk!")
# warn people about ModemManager which interferes badly with Pixhawk