From 4920a57365dcf04ecdb20179c4be4781e24805d8 Mon Sep 17 00:00:00 2001 From: Kyle Kelley Date: Mon, 18 Jan 2016 13:48:27 -0600 Subject: [PATCH] Enum'ed Arg --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 9ca9e7c..d196926 100644 --- a/main.go +++ b/main.go @@ -177,7 +177,7 @@ func New() *Application { autoscaleCommand := new(AutoScaleCommand) autoscaleCommand.ClusterCommand = cap.NewClusterCommand(ctx, "autoscale", "Enable or disable autoscale on a cluster") - autoscaleCommand.Flag("autoscale", "whether autoscale is on or off").EnumVar(&autoscaleCommand.AutoScale, AutoScaleOn, AutoScaleOff) + autoscaleCommand.Arg("autoscale", "whether autoscale is on or off").EnumVar(&autoscaleCommand.AutoScale, AutoScaleOn, AutoScaleOff) autoscaleCommand.Action(autoscaleCommand.SetAutoScale) credentialsCommand := cap.NewCredentialsCommand(ctx, "credentials", "download credentials")