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

Fixed issue with Parametric commands failing due to CommandArgs not being in namespace. #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

3 participants