diff --git a/README.md b/README.md index fee58f7..bcd5cc0 100644 --- a/README.md +++ b/README.md @@ -89,9 +89,10 @@ microcks [command] [flags] | `--microcksURL` | Microcks API URL | -## Installation + ### Building from Source + To build the CLI locally: ```bash diff --git a/cmd/test.go b/cmd/test.go index b9a6989..b7e875e 100644 --- a/cmd/test.go +++ b/cmd/test.go @@ -58,15 +58,15 @@ func NewTestCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command { // Validate presence and values of args. if len(serviceRef) == 0 || strings.HasPrefix(serviceRef, "-") { - fmt.Println("test command require args") + fmt.Fprintln(os.Stderr, "missing required argument: (e.g. 'my-api:1.0')") os.Exit(1) } if len(testEndpoint) == 0 || strings.HasPrefix(testEndpoint, "-") { - fmt.Println("test command require args") + fmt.Fprintln(os.Stderr, "missing required argument: (e.g. 'http://localhost:8080/api')") os.Exit(1) } if len(runnerType) == 0 || strings.HasPrefix(runnerType, "-") { - fmt.Println("test command require args") + fmt.Fprintln(os.Stderr, "missing required argument: (e.g. 'HTTP', 'POSTMAN', 'OPEN_API_SCHEMA')") os.Exit(1) } if _, validChoice := runnerChoices[runnerType]; !validChoice {