-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ember-cli 2.12 argument parsing #6970
Comments
This issue is related to updating https://github.com/ember-cli/ember-cli/blob/master/lib/models/command.js#L570
Example: var nopt = require("nopt")
var args = [ '1', '--options', '--split 2 --random' ]
var knownOpts = { options: String, path: String}
var opts = nopt( knownOpts, {}, args, 0) Logging options with nopt version 3.x, options work fine.
Logging options with nopt version 4.x, options are empty.
|
Interesting, sounds like this might be an upstream nopt bug, Got time to see if thats the case? |
Looks like it. Does it make sense to revert to the previous version of nopt in the meantime? |
yup |
@calderas mind submitting a PR? + quick unit test so we get a test failure if someone tries to upgrade before this is fixed upstream. |
Original Issue: ember-cli/ember-exam#84
Something has changed in the way that ember-cli parses arguments, I just wanted to add this here for visibility.
DEBUG=ember-cli:* ember exam:iterate 2 --options "--reporter teamcity --random"
Output on 2.11.1
Output on 2.12.0-beta.1
The text was updated successfully, but these errors were encountered: