diff --git a/cmd/batch-describe.go b/cmd/batch-describe.go index e5377a73..766f858f 100644 --- a/cmd/batch-describe.go +++ b/cmd/batch-describe.go @@ -50,7 +50,7 @@ EXAMPLES: // checkBatchDescribeSyntax - validate all the passed arguments func checkBatchDescribeSyntax(ctx *cli.Context) { if len(ctx.Args()) != 2 { - cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code + showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code } } diff --git a/cmd/batch-generate.go b/cmd/batch-generate.go index 5cea6670..204161ac 100644 --- a/cmd/batch-generate.go +++ b/cmd/batch-generate.go @@ -50,7 +50,7 @@ EXAMPLES: // checkBatchGenerateSyntax - validate all the passed arguments func checkBatchGenerateSyntax(ctx *cli.Context) { if len(ctx.Args()) != 2 { - cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code + showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code } } diff --git a/cmd/batch-list.go b/cmd/batch-list.go index 2d0ebfdc..ec664ec2 100644 --- a/cmd/batch-list.go +++ b/cmd/batch-list.go @@ -120,7 +120,7 @@ func (c batchListMessage) JSON() string { // checkBatchListSyntax - validate all the passed arguments func checkBatchListSyntax(ctx *cli.Context) { if len(ctx.Args()) != 1 { - cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code + showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code } } diff --git a/cmd/batch-start.go b/cmd/batch-start.go index 20922f81..728428ba 100644 --- a/cmd/batch-start.go +++ b/cmd/batch-start.go @@ -75,7 +75,7 @@ func (c batchStartMessage) JSON() string { // checkBatchStartSyntax - validate all the passed arguments func checkBatchStartSyntax(ctx *cli.Context) { if len(ctx.Args()) != 2 { - cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code + showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code } } diff --git a/cmd/batch-status.go b/cmd/batch-status.go index 102c0064..43cfb0da 100644 --- a/cmd/batch-status.go +++ b/cmd/batch-status.go @@ -44,7 +44,7 @@ EXAMPLES: // checkBatchStatusSyntax - validate all the passed arguments func checkBatchStatusSyntax(ctx *cli.Context) { if len(ctx.Args()) != 2 { - cli.ShowCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code + showCommandHelpAndExit(ctx, ctx.Command.Name, 1) // last argument is exit code } } diff --git a/cmd/support-perf.go b/cmd/support-perf.go index cdd6c698..90a001d0 100644 --- a/cmd/support-perf.go +++ b/cmd/support-perf.go @@ -240,7 +240,7 @@ func runPerfTests(ctx *cli.Context, aliasedURL string, perfType string) []PerfTe case "net": mainAdminSpeedTestNetperf(ctx, aliasedURL, resultCh) default: - cli.ShowCommandHelpAndExit(ctx, "perf", 1) // last argument is exit code + showCommandHelpAndExit(ctx, "perf", 1) // last argument is exit code } if !globalJSON {