mirror of https://github.com/docker/cli.git
Fix typo
Signed-off-by: Cao Weiwei <cao.weiwei30@zte.com.cn>
This commit is contained in:
parent
2791c2ec28
commit
efdd29abcf
2
cobra.go
2
cobra.go
|
@ -17,7 +17,7 @@ func SetupRootCommand(rootCmd *cobra.Command) {
|
||||||
rootCmd.PersistentFlags().MarkShorthandDeprecated("help", "please use --help")
|
rootCmd.PersistentFlags().MarkShorthandDeprecated("help", "please use --help")
|
||||||
}
|
}
|
||||||
|
|
||||||
// FlagErrorFunc prints an error messages which matches the format of the
|
// FlagErrorFunc prints an error message which matches the format of the
|
||||||
// docker/docker/cli error messages
|
// docker/docker/cli error messages
|
||||||
func FlagErrorFunc(cmd *cobra.Command, err error) error {
|
func FlagErrorFunc(cmd *cobra.Command, err error) error {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
Loading…
Reference in New Issue