-
Notifications
You must be signed in to change notification settings - Fork 710
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
Error on unknown arguments passed to emsdk activate
#1313
Conversation
e78ad5f
to
d98d5c2
Compare
emsdk activate
ptal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh oops, I left a comment and didn't submit it...
if tool is None: | ||
error_on_missing_tool(arg) | ||
if tool is None: | ||
error_on_missing_tool(arg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this means that args of the form --arg
will now go through this missing tool logic. Does it print a message that makes sense for non-tool args?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you will not see no tool found: --arg
rather than silently ignoring it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right sorry, I guess what I meant was, should the error message be generalized to something like "unknown argument or no tool found by that name", since the error could now be either one of those cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other command like emsdk install
already report error: tool or SDK not found: '--foo'
.. we could perhaps make that nicer, but that seems separate (and less important?) to ignoring args.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense, I don't want to block this PR, just wanted to bring it up.
See #1312