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 hints when using space-cli generate incorrectly #1127

Closed
HeyItsJs opened this issue Jul 4, 2020 · 2 comments
Closed

Provide better hints when using space-cli generate incorrectly #1127

HeyItsJs opened this issue Jul 4, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@HeyItsJs
Copy link
Contributor

HeyItsJs commented Jul 4, 2020

I used the following space-cli command to generate remote-services:

space-cli generate remote-services --project myproject

It gives me the following error:

ERRO[0000] incorrect number of arguments                
Error: incorrect number of arguments

As a next step that any developer would take, I ran the following command:

space-cli generate remote-services --help

And here's what I get 😐:

Usage:
  space-cli generate remote-services [flags]

Flags:
  -h, --help   help for remote-services

Global Flags:
      --log-level string   Sets the log level of the command (default "info")
      --project string     The project id to perform the options in

This isn't really helpful. Ideally, the error message should have only said what argument it required in the first place. I this was some other tool, I would have dropped off at this point as I faced a roadblock which I couldn't solve.

@HeyItsJs HeyItsJs added enhancement New feature or request backend labels Jul 4, 2020
@prakashmishra1598
Copy link
Contributor

@YourTechBud , Can you assign this to me?

@YourTechBud YourTechBud changed the title Provide better hints when using space-cli incorrectly Provide better hints when using space-cli generate incorrectly Jul 11, 2020
@YourTechBud
Copy link
Collaborator

This is done. Just done for the generate commands for not. We can creating another issue for doing the same with the getters #1153.

Closing this for now

@YourTechBud YourTechBud added this to the v0.19.0 milestone Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants