mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
generalize input for ctx.Command.Name (#4338)
This commit is contained in:
@@ -116,7 +116,7 @@ func (d diffMessage) JSON() string {
|
||||
|
||||
func checkDiffSyntax(ctx context.Context, cliCtx *cli.Context, encKeyDB map[string][]prefixSSEPair) {
|
||||
if len(cliCtx.Args()) != 2 {
|
||||
showCommandHelpAndExit(cliCtx, "diff", 1) // last argument is exit code
|
||||
showCommandHelpAndExit(cliCtx, 1) // last argument is exit code
|
||||
}
|
||||
for _, arg := range cliCtx.Args() {
|
||||
if strings.TrimSpace(arg) == "" {
|
||||
|
||||
Reference in New Issue
Block a user