Skip to content

Conversation

@me4502
Copy link
Member

@me4502 me4502 commented Mar 18, 2017

Currently, if you try to setup Parametric commands, it fails due to the DefaultModule expecting CommandArgs to be in the namespace when parser.parseArguments is called. This moves it to where it's defined, meaning it's available.

@me4502 me4502 added the bug label Mar 18, 2017
@me4502 me4502 requested a review from sk89q March 18, 2017 12:28
@literalplus
Copy link
Contributor

I'm experiencing this issue too and looked into it before I found this.

Any reason we can't use the CommandArgs parameter passed to CommandArgsProvider directly? It seems to go through OptionType#transform(CommandArgs), but that shouldn't matter since declaring the CommandArgs parameter as @Switch or @Optional makes little to no sense, which means that the CommandArgs passed as parameter should generally be the same as these in the Namespace.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants