mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
Use a pager for help output (#4245)
This commit is contained in:
@@ -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 {
|
||||
cli.ShowCommandHelpAndExit(cliCtx, "mv", 1) // last argument is exit code.
|
||||
showCommandHelpAndExit(cliCtx, "mv", 1) // last argument is exit code.
|
||||
}
|
||||
cli.ShowCommandHelpAndExit(cliCtx, "cp", 1) // last argument is exit code.
|
||||
showCommandHelpAndExit(cliCtx, "cp", 1) // last argument is exit code.
|
||||
}
|
||||
|
||||
// extract URLs.
|
||||
|
||||
Reference in New Issue
Block a user