def get_args():
    """
    Get and parse arguments.

    """
    import argparse
    parser = argparse.ArgumentParser(description=
        'Mavlink to SBP JSON converter')
    parser.add_argument('dataflashfile', help='the dataflashfile to convert.')
    parser.add_argument('-t', '--timestep', default=[10], nargs=1, help=
        'number of seconds gap at which to split a file')
    parser.add_argument('-p', '--prefix', default=[None], nargs=1, help=
        'file prefix')
    parser.add_argument('-v', '--verbose', action='store_true', help=
        'print extra debugging information.')
    args = parser.parse_args()
    return args
