Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

'dinghy create' reports incomplete usage information #230

Closed
nicolaiskogheim opened this issue Jan 17, 2017 · 3 comments
Closed

'dinghy create' reports incomplete usage information #230

nicolaiskogheim opened this issue Jan 17, 2017 · 3 comments

Comments

@nicolaiskogheim
Copy link

nicolaiskogheim commented Jan 17, 2017

Consider this:

$ dinghy create --help
ERROR: "dinghy create" was called with arguments ["--help"]
Usage: "dinghy create"

Dinghy not accepting --help is okay, but it should say it accepts the --provider=[virtualbox|xhyve|etc] argument.


$ dinghy version
Dinghy 4.4.1
@codekitchen
Copy link
Owner

Yeah I get tripped up by this even, and I'm the one who wrote it. It's a consequence of using Thor for the CLI, I'm not aware of a way to change Thor's behavior here (you're supposed to use dinghy help create instead to see the available flags).

Maybe I can try just updating Dinghy to use the latest Thor, see if that improves the output.

@codekitchen
Copy link
Owner

Nope, upgrading to the latest Thor didn't change the output at all. I dug around the Thor docs a bit, but I don't see an obvious way to improve this behavior.

@nicolaiskogheim
Copy link
Author

Thank you for looking into it.

We can keep an eye on this[1] issue. It's a couple of months old, but if it gets resolved, we can solve our issue too.

[1] rails/thor#532

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants