From adfdef49a912edcc824fa19a41968a212d6f3553 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Wed, 30 Mar 2016 14:44:00 -0600 Subject: [PATCH] fix(cli): Add -n alias for --name On 'helm deploy', add '-n' as an alias for '--name', and also update docs to make it neutral about whether '-n'/'--name' is required. --- cmd/helm/deploy.go | 2 +- cmd/helm/helm.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/deploy.go b/cmd/helm/deploy.go index 26d76ebd7..5db207bc6 100644 --- a/cmd/helm/deploy.go +++ b/cmd/helm/deploy.go @@ -42,7 +42,7 @@ func deployCmd() cli.Command { Usage: "The configuration YAML file for this deployment.", }, cli.StringFlag{ - Name: "name", + Name: "name,n", Usage: "Name of deployment, used for deploy and update commands (defaults to template name)", }, // TODO: I think there is a Generic flag type that we can implement parsing with. diff --git a/cmd/helm/helm.go b/cmd/helm/helm.go index 8994ceb72..94b529671 100644 --- a/cmd/helm/helm.go +++ b/cmd/helm/helm.go @@ -39,7 +39,7 @@ const desc = `Helm: the package and deployment manager for Kubernetes Once the in-cluster portion is running, you can use 'helm deploy' to deploy a new application: - $ helm deploy CHARTNAME + $ helm deploy -n NAME CHART For more information on Helm commands, you can use the following tools: