mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Fix misspelling typo
This commit is contained in:
parent
d697cc29c1
commit
476e73f093
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ A flag can also be assigned locally which will only apply to that specific comma
|
||||||
|
|
||||||
Removing a command is not a common action in simple programs but it allows 3rd parties to customize an existing command tree.
|
Removing a command is not a common action in simple programs but it allows 3rd parties to customize an existing command tree.
|
||||||
|
|
||||||
In this exemple, we remove the existing `VersionCmd` command of an existing root command, and we replace it by our own version.
|
In this example, we remove the existing `VersionCmd` command of an existing root command, and we replace it by our own version.
|
||||||
|
|
||||||
mainlib.RootCmd.RemoveCommand(mainlib.VersionCmd)
|
mainlib.RootCmd.RemoveCommand(mainlib.VersionCmd)
|
||||||
mainlib.RootCmd.AddCommand(versionCmd)
|
mainlib.RootCmd.AddCommand(versionCmd)
|
||||||
|
|
Loading…
Reference in a new issue