vilicvane / clime

⌨ The command-line interface framework for TypeScript.
252 stars 10 forks source link

Support more than one Options parameter #51

Open asafh opened 5 years ago

asafh commented 5 years ago

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 commented 5 years ago

@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.