From 9d4eab32d82c304666d7d2331ab3c4f6ca0ed3eb Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Mon, 20 Dec 2021 13:42:45 -0700 Subject: [PATCH] cmd: fix broken example link in help.go This link appears to be broken, so here is another reference to (I think) the same file that provides a good example of coba. We could also do the current commit https://github.com/moby/moby/blob/8312004f41e9500824fa16ae991eeee0083f4771/cli/cobra.go although it might be better to maintain an up to date example. --- cmd/help.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/help.go b/cmd/help.go index e6d7eb806..280b3d970 100644 --- a/cmd/help.go +++ b/cmd/help.go @@ -165,7 +165,7 @@ func runRoot(cmd *cobra.Command, args []string) { // setupRootCommand sets default usage, help, and error handling for // the root command. // -// Helpful example: http://rtfcode.com/xref/moby-17.03.2-ce/cli/cobra.go +// Helpful example: https://github.com/moby/moby/blob/master/cli/cobra.go func setupRootCommand(rootCmd *cobra.Command) { ci := fs.GetConfig(context.Background()) // Add global flags