1
0
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:
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

View File

@@ -31,9 +31,9 @@ import (
func checkCopySyntax(ctx context.Context, cliCtx *cli.Context, encKeyDB map[string][]prefixSSEPair, isMvCmd bool) {
if len(cliCtx.Args()) < 2 {
if isMvCmd {
showCommandHelpAndExit(cliCtx, "mv", 1) // last argument is exit code.
showCommandHelpAndExit(cliCtx, 1) // last argument is exit code.
}
showCommandHelpAndExit(cliCtx, "cp", 1) // last argument is exit code.
showCommandHelpAndExit(cliCtx, 1) // last argument is exit code.
}
// extract URLs.