diff --git a/cmd/minikube/cmd/stop.go b/cmd/minikube/cmd/stop.go index e8d537e9c5..4fd0fadabc 100644 --- a/cmd/minikube/cmd/stop.go +++ b/cmd/minikube/cmd/stop.go @@ -61,7 +61,7 @@ func init() { stopCmd.Flags().BoolVar(&stopAll, "all", false, "Set flag to stop all profiles (clusters)") stopCmd.Flags().BoolVar(&keepActive, "keep-context-active", false, "keep the kube-context active after cluster is stopped. Defaults to false.") stopCmd.Flags().DurationVar(&scheduledStopDuration, "schedule", 0*time.Second, "Set flag to stop cluster after a set amount of time (e.g. --schedule=5m)") - stopCmd.Flags().BoolVar(&cancelScheduledStop, "cancel-scheduled-stop", false, "cancel any existing scheduled stop requests") + stopCmd.Flags().BoolVar(&cancelScheduledStop, "cancel-scheduled", false, "cancel any existing scheduled stop requests") if err := stopCmd.Flags().MarkHidden("schedule"); err != nil { klog.Info("unable to mark --schedule flag as hidden") diff --git a/site/content/en/docs/commands/stop.md b/site/content/en/docs/commands/stop.md index d5a2c19563..8b96e3de89 100644 --- a/site/content/en/docs/commands/stop.md +++ b/site/content/en/docs/commands/stop.md @@ -20,10 +20,10 @@ minikube stop [flags] ### Options ``` - --all Set flag to stop all profiles (clusters) - --cancel-scheduled-stop cancel any existing scheduled stop requests - --keep-context-active keep the kube-context active after cluster is stopped. Defaults to false. - -o, --output string Format to print stdout in. Options include: [text,json] (default "text") + --all Set flag to stop all profiles (clusters) + --cancel-scheduled cancel any existing scheduled stop requests + --keep-context-active keep the kube-context active after cluster is stopped. Defaults to false. + -o, --output string Format to print stdout in. Options include: [text,json] (default "text") ``` ### Options inherited from parent commands diff --git a/test/integration/scheduled_stop_test.go b/test/integration/scheduled_stop_test.go index 597f9a2200..508a385999 100644 --- a/test/integration/scheduled_stop_test.go +++ b/test/integration/scheduled_stop_test.go @@ -98,7 +98,7 @@ func TestScheduledStopUnix(t *testing.T) { // cancel the shutdown and make sure minikube is still running after 8 seconds // sleep 12 just to be safe - stopMinikube(ctx, t, profile, []string{"--cancel-scheduled-stop"}) + stopMinikube(ctx, t, profile, []string{"--cancel-scheduled"}) time.Sleep(12 * time.Second) ensureMinikubeStatus(ctx, t, profile, state.Running.String())