Is your feature request related to a problem? Please describe.
I'd like the ability to define variadic arguments.
Describe the solution you'd like
static args = {
value: Args.string({
multiple: true,
})
}
console.log(this.args.value[0], this.args.value[1])
Describe alternatives you've considered
I've set "strict = false" and pulled the args from "const {argv} = await this.parse(..)" as it's called out in the docs: https://oclif.io/docs/args/. This means to use variadic arguments you lose the syntactic sugar (and documentation) of the args definition. You also lose validation (e.g. number / string / etc).
In other words, I want variadic arguments with strict parsing.
Additional context
Previous issues:
Other tools:
Is your feature request related to a problem? Please describe.
I'd like the ability to define variadic arguments.
Describe the solution you'd like
Describe alternatives you've considered
I've set "strict = false" and pulled the args from "const {argv} = await this.parse(..)" as it's called out in the docs: https://oclif.io/docs/args/. This means to use variadic arguments you lose the syntactic sugar (and documentation) of the args definition. You also lose validation (e.g. number / string / etc).
In other words, I want variadic arguments with strict parsing.
Additional context
Previous issues:
Other tools:
Option.Proxy-- I've had to hack something like this together in oclif to support unknown flags so they can be forwarded without disabling strict parsing of known flags though that's a separate issue.