code: def _bse_cli_list_formats(args):
      '''Handles the list-formats subcommand'''
      all_formats = api.get_formats()
  
      if args.no_description:
          liststr = all_formats.keys()
      else:
          liststr = format_columns(all_formats.items())
  
      return '\n'.join(liststrf _bse_cli_list_formats(args):
      '''Handles the list-formats subcommand'''
      all_formats = api.get_formats()
  
      if args.no_description:
          liststr = all_formats.keys()
      else:
          liststr = format_columns(all_formats.items())
  
      return '\n'.join(liststr)
docs: Handles the list-formats subcommand