forked from TrueCloudLab/rclone
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:
parent
b4ba7b69b8
commit
9d4eab32d8
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ func runRoot(cmd *cobra.Command, args []string) {
|
||||||
// setupRootCommand sets default usage, help, and error handling for
|
// setupRootCommand sets default usage, help, and error handling for
|
||||||
// the root command.
|
// 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) {
|
func setupRootCommand(rootCmd *cobra.Command) {
|
||||||
ci := fs.GetConfig(context.Background())
|
ci := fs.GetConfig(context.Background())
|
||||||
// Add global flags
|
// Add global flags
|
||||||
|
|
Loading…
Reference in a new issue