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

Get arguments/options of sub-generator #50

Closed
SamVerschueren opened this issue Nov 20, 2015 · 2 comments
Closed

Get arguments/options of sub-generator #50

SamVerschueren opened this issue Nov 20, 2015 · 2 comments

Comments

@SamVerschueren
Copy link

Hi, I'm not sure if this is possible, so if not, just tell me and close the issue :).

So in a sub-generator, it's possible to define arguments and options as described in the section Arguments (and Options). Is it possible to retrieve those together with the generators metadata?

The reason I'm asking this is because I'm writing a VS Code plugin and I support sub-generators. But some sub-generators have arguments, which I'm not aware off. As you can see in this block off code, I'm running the sub-generator, if it throws an error with a specific message, I show an input box where the user can pass in it's argument. This feels very hacky and I was hoping for a better way.

The same goes for the options. If I could retrieve the options of a sub-generator, I can show a multi-select list where the user can pick the options he wants.

Any thoughts on this?

@SBoudrias
Copy link
Member

I don't think we have it explicitly exposed. You can call .help() to get the help message.

We should totally fix this.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2020

This issue is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 5 days

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

No branches or pull requests

2 participants