1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

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 8312004f41/cli/cobra.go although it might be better to maintain an up to date example.
This commit is contained in:
Vanessasaurus 2021-12-20 13:42:45 -07:00 committed by Nick Craig-Wood
parent b4ba7b69b8
commit 9d4eab32d8

View File

@ -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