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:
@@ -139,7 +139,7 @@ var defaultConfig = PrometheusConfig{
|
||||
// checkAdminPrometheusSyntax - validate all the passed arguments
|
||||
func checkAdminPrometheusSyntax(ctx *cli.Context) {
|
||||
if len(ctx.Args()) != 1 {
|
||||
showCommandHelpAndExit(ctx, "generate", 1) // last argument is exit code
|
||||
showCommandHelpAndExit(ctx, 1) // last argument is exit code
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user