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

Support more than one Options parameter #51

Open
asafh opened this issue Nov 30, 2018 · 1 comment
Open

Support more than one Options parameter #51

asafh opened this issue Nov 30, 2018 · 1 comment

Comments

@asafh
Copy link

asafh commented Nov 30, 2018

Hi,
The way I understand it (and so it appears from testing), clime currently only looks at the first parameter that extends Options and adds its definitions to the command.
I think it would be useful to not limit to the first one and simply gather all of the Option derived parameters. You could then package shared command parameters into Option classes and compose them on a per-command basis.
Is there a better way to achieve this or am I misunderstanding something?

Cheers,
Asaf

@vilicvane
Copy link
Owner

@asafh Hi, thanks for the idea. Unfortunately I cannot think of a nice way to achieve that using currently provided API. Will investigate this later.

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