code: def main():
      
      parser = argparse.ArgumentParser(description='Display information from an ULog file')
      parser.add_argument('filename', metavar='file.ulg', help='ULog input file')
      parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
                          help='Verbose output', default=False)
      parser.add_argument('-m', '--message', dest='message',
                          help='Show a specific Info Multiple Message')
      parser.add_argument('-n', '--newline', dest='newline', action='store_true',
                          help='Add newline separators (only with --message)', default=False)
  
  
      args = parser.parse_args()
      ulog_file_name = args.filename
      ulog = ULog(ulog_file_name)
      message = args.message
      if message:
          separator = ""
          if args.newline: separator = "\n"
          if len(ulog.msg_info_multiple_dict) > 0 and message in ulog.msg_info_multiple_dict:
              message_info_multiple = ulog.msg_info_multiple_dict[message]
              for i, m in enumerate(message_info_multiple):
                  print("# {} {}:".format(message, i))
                  print(separator.join(m))
          else:
              print("message {} not found".format(message))
      else:
          show_info(ulog, args.verbose)
docs: Commande line interface