From c92a9b12d9507c0e4119d3e158b8b982f026e366 Mon Sep 17 00:00:00 2001 From: Christopher Crone <christopher.crone@docker.com> Date: Thu, 14 May 2020 09:59:48 +0200 Subject: [PATCH] Add help to context commands Signed-off-by: Christopher Crone <christopher.crone@docker.com> --- cli/cmd/context.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/cmd/context.go b/cli/cmd/context.go index 6207e0698..2fde17daa 100644 --- a/cli/cmd/context.go +++ b/cli/cmd/context.go @@ -84,6 +84,7 @@ func createCommand() *cobra.Command { func listCommand() *cobra.Command { cmd := &cobra.Command{ Use: "list", + Short: "List available contexts", Aliases: []string{"ls"}, Args: cobra.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { @@ -95,7 +96,8 @@ func listCommand() *cobra.Command { func removeCommand() *cobra.Command { return &cobra.Command{ - Use: "rm", + Use: "rm CONTEXT [CONTEXT...]", + Short: "Remove one or more contexts", Aliases: []string{"remove"}, Args: cobra.MinimumNArgs(1), RunE: func(cmd *cobra.Command, args []string) error {