generalize input for ctx.Command.Name (#4338)

This commit is contained in:
Harshavardhana
2022-11-01 08:04:26 -07:00
committed by GitHub
parent 15e52fd862
commit cf7e0ae050
149 changed files with 163 additions and 163 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ EXAMPLES:
// checkReplicateDiffSyntax - validate all the passed arguments
func checkReplicateDiffSyntax(ctx *cli.Context) {
if len(ctx.Args()) != 1 {
showCommandHelpAndExit(ctx, "diff", 1) // last argument is exit code
showCommandHelpAndExit(ctx, 1) // last argument is exit code
}
}