@click.command()<EOL>@base_dataset_uri_argument<EOL>@click.argument("<STR_LIT>", default="<STR_LIT>")<EOL>def name(dataset_uri, new_name):
if new_name != "<STR_LIT>":<EOL><INDENT>_validate_name(new_name)<EOL>try:<EOL><INDENT>dataset = dtoolcore.ProtoDataSet.from_uri(<EOL>uri=dataset_uri,<EOL>config_path=CONFIG_PATH<EOL>)<EOL><DEDENT>except dtoolcore.DtoolCoreTypeError:<EOL><INDENT>dataset = dtoolcore.DataSet.from_uri(<EOL>uri=dataset_uri,<EOL>config_path=CONFIG_PATH<EOL>)<EOL><DEDENT>dataset.update_name(new_name)<EOL><DEDENT>admin_metadata = dtoolcore._admin_metadata_from_uri(<EOL>uri=dataset_uri,<EOL>config_path=CONFIG_PATH<EOL>)<EOL>click.secho(admin_metadata["<STR_LIT:name>"])<EOL>
Report / update the name of the dataset.

It is only possible to update the name of a proto dataset,
i.e. a dataset that has not yet been frozen.