code: def _bse_cli_get_versions(args):
      '''Handles the get-versions subcommand'''
      name = args.basis.lower()
      metadata = api.get_metadata(args.data_dir)
      if not name in metadata:
          raise KeyError(
              "Basis set {} does not exist. For a complete list of basis sets, use the 'list-basis-sets' command".format(
                  name))
  
      version_data = {k: v['revdesc'] for k, v in metadata[name]['versions'].items()}
  
      if args.no_description:
          liststr = version_data.keys()
      else:
          liststr = format_columns(version_data.items())
  
      return '\n'.join(liststrf _bse_cli_get_versions(args):
      '''Handles the get-versions subcommand'''
      name = args.basis.lower()
      metadata = api.get_metadata(args.data_dir)
      if not name in metadata:
          raise KeyError(
              "Basis set {} does not exist. For a complete list of basis sets, use the 'list-basis-sets' command".format(
                  name))
  
      version_data = {k: v['revdesc'] for k, v in metadata[name]['versions'].items()}
  
      if args.no_description:
          liststr = version_data.keys()
      else:
          liststr = format_columns(version_data.items())
  
      return '\n'.join(liststr)
docs: Handles the get-versions subcommand