-
Notifications
You must be signed in to change notification settings - Fork 201
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
Fix: WCT CLI arg standardizing #424
Conversation
Breaking change btw ;) |
Or is it a fix since it should have been this way in the first place? 🤔 😛 |
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.
Okay. I'll need to make the changelog item more explicit in case this does break somebody's use-case.
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.
I'm going to need to hold off on merging this one for now unless we can also extend the code to support the old form, since it is technically a breaking change and there are uses in-the-wild.
@usergenic I wonder if I could set |
@stramel that occurred to me too. haven't tested it but thats probably the way to go. |
Yeah, I won't be able to test until I get home. But if it works I will update the PR and add a note |
Maybe a deprecation warning on top of this? So we can actually drop it some day? |
FYI: |
@usergenic Perhaps this is just a happy coincidence but this isn't a breaking change, oddly enough. It is "breaking" in the sense that we are deprecating the # Works with previous camelCase arg
$ ./packages/web-component-tester/bin/wct --configFile=polymer.test.json
args [ '--configFile=polymer.test.json' ]
options { configFile: 'polymer.test.json' }
# Works with added dash-case arg
$ ./packages/web-component-tester/bin/wct --config-file=polymer.test.json
args [ '--config-file=polymer.test.json' ]
options { configFile: 'polymer.test.json' } Outputting the
Technically speaking any arg listed camelCase in the definition list will work camelCase even with NOTE: NOTE: |
@stramel whoa! how about that! okay, that's great work looking into that. After we merge this I'll add a test or something to ensure handling of both forms in the event someone decides to upgrade wct's arg parsing without knowing all this. |
I'll get this merged before tomorrow as soon as I can set aside a moment to craft that test. |
Had some other issues with CLI release branch on Friday; Will get this merged today (if possible!) |
No worries! Thanks again @usergenic! |
Supersedes Polymer/web-component-tester#698
Fixes #416 https://github.com/Polymer/polymer-cli/issues/919 https://github.com/Polymer/web-component-tester/issues/652
@usergenic