chore: Rename registry-path arg to registry-namespace but keep previous as alias

This commit is contained in:
Gerald Pinder 2024-02-12 20:32:26 -05:00
parent 6b4c86f01f
commit fec33d8c98

View file

@ -71,7 +71,8 @@ pub struct BuildCommand {
/// project images.
#[arg(long)]
#[builder(default, setter(into, strip_option))]
registry_path: Option<String>,
#[arg(visible_alias("registry-path"))]
registry_namespace: Option<String>,
/// The username to login to the
/// container registry.
@ -380,7 +381,7 @@ impl BuildCommand {
.ok()
.map(|s| s.to_lowercase()),
self.registry.as_ref().map(|s| s.to_lowercase()),
self.registry_path.as_ref().map(|s| s.to_lowercase()),
self.registry_namespace.as_ref().map(|s| s.to_lowercase()),
) {
(_, _, _, _, Some(registry), Some(registry_path)) => {
trace!("registry={registry}, registry_path={registry_path}");