Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better instructions on the kit create command for missing nam… #932

Merged
merged 3 commits into from
Sep 10, 2019

Conversation

dobozysaurus
Copy link
Contributor

…e param.

#586 refers to the kamel context create command, which looks to have been replaced by the kit command. This fix updates the language in the usage field to make the name arg requirement more clear.

@@ -76,7 +75,7 @@ type kitCreateCommand struct {

func (command *kitCreateCommand) validateArgs(_ *cobra.Command, args []string) error {
if len(args) != 1 {
return errors.New("accepts 1 arg, received " + strconv.Itoa(len(args)))
return errors.New("Create expects a single name argument.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error message should not start with capital letter.

@astefanutti astefanutti merged commit 7f7d15f into apache:master Sep 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants