def get_args():
    """
    Get and parse arguments.
    """
    import argparse
    parser = argparse.ArgumentParser(description='MetaData xml creator')
    parser.add_argument('-f', '--filename', default=[None], nargs=1, help=
        'The SBP log file to extract data from. Default format is sbp json')
    parser.add_argument('-b', '--binary', action='store_true', help=
        'Flag to indicate that the SBP file is a binary sbp file. Default format is sbp json'
        )
    parser.add_argument('-o', '--outfile', default=['output.csv'], nargs=1,
        help='specify the name of the CSV file output.')
    parser.add_argument('-t', '--type', nargs=1, default=['MsgBaselineNED'],
        help='Type of message to interpolate.')
    parser.add_argument('-d', '--debouncetime', type=int, default=[1000],
        nargs=1, help='Specify the debounce time for trigger in ms.')
    parser.add_argument('-v', '--verbose', action='store_true', help=
        'Flag to indicate that the SBP file is a binary sbp file. Default format is sbp json'
        )
    args = parser.parse_args()
    return args
