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

"run" tool doesn't give error for unknown option #43

Open
quintesse opened this issue Jul 1, 2014 · 2 comments
Open

"run" tool doesn't give error for unknown option #43

quintesse opened this issue Jul 1, 2014 · 2 comments
Assignees
Milestone

Comments

@quintesse
Copy link
Member

Opened here instead of "runtime" because it's almost surely a problem with the underlying framework (probably related to the use of the annotation @Rest)

Found when trying to execute ceylon run --no-default-repos default (the flag is called --no-default-repositories)

@quintesse quintesse added this to the 1.1 milestone Jul 1, 2014
@quintesse quintesse self-assigned this Jul 1, 2014
@tombentley
Copy link
Member

Well how can the framework know what options and arguments an arbitrary ceylon module takes? Either the module itself takes responsibility for handing it's arguments (which is the situation we have today), or we force an annotation-based approach on all modules so that a framework can be used to validate options for all modules.

@quintesse
Copy link
Member Author

But this is not an option for the module that's being run, it's a valid and known option for the run tool that appears before the final argument used by the run tool itself. I'm sure we can come up with some way separate one from the other (without reverting to the use of --).

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