1
0
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:
Anis Elleuch
2022-09-28 19:28:02 +01:00
committed by GitHub
parent 2f08ccf0d5
commit f85086b153
147 changed files with 381 additions and 175 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 {
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.