MCPcopy Index your code
hub / github.com/minio/mc / showCommandHelpAndExit

Function showCommandHelpAndExit

cmd/main.go:540–545  ·  view source on GitHub ↗
(cliCtx *cli.Context, code int)

Source from the content-addressed store, hash-verified

538}
539
540func showCommandHelpAndExit(cliCtx *cli.Context, code int) {
541 cli.ShowCommandHelp(cliCtx, cliCtx.Command.Name)
542 // Wait until the user quits the pager
543 globalHelpPager.WaitForExit()
544 os.Exit(code)
545}
546
547func showAppHelpAndExit(cliCtx *cli.Context) {
548 cli.ShowAppHelp(cliCtx)

Callers 15

checkEncryptInfoSyntaxFunction · 0.85
mainUpdateFunction · 0.85
checkBucketImportSyntaxFunction · 0.85
checkBatchListSyntaxFunction · 0.85
checkVersionEnableSyntaxFunction · 0.85
checkBatchDescribeSyntaxFunction · 0.85

Calls 1

WaitForExitMethod · 0.80

Tested by

no test coverage detected