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

Function checkVersionEnableSyntax

cmd/version-enable.go:73–77  ·  view source on GitHub ↗

checkVersionEnableSyntax - validate all the passed arguments

(ctx *cli.Context)

Source from the content-addressed store, hash-verified

71
72// checkVersionEnableSyntax - validate all the passed arguments
73func checkVersionEnableSyntax(ctx *cli.Context) {
74 if len(ctx.Args()) != 1 {
75 showCommandHelpAndExit(ctx, 1) // last argument is exit code
76 }
77}
78
79type versionEnableMessage struct {
80 Op string

Callers 1

mainVersionEnableFunction · 0.85

Calls 1

showCommandHelpAndExitFunction · 0.85

Tested by

no test coverage detected