-
Notifications
You must be signed in to change notification settings - Fork 343
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
Yargs turns values like "--something" passed to web-ext run --args="..."
as additional web-ext options
#1846
Comments
eh, that's really annoying :-| I took a quick look and yargs seems to be parsing the argument twice internally and the second time seems to be turning the Besides that, Ironically, it looks that adding one space character at the start of the
|
Some additional detail from the logs I collected locally while reproducing this issue. The first time yargs
The second time yargs
|
web-ext run --args="..."
as additional web-ext options
yargs seems to support a new e.g. by logging the parsed option from the yargs _parseArgs method above: With
With
|
Using Another hacky work-around is to map |
This looks to have been fixed upstream in yargs v15.3.1 (which is now used on master, updated in I'm not closing this issue yet because it would be good to look into adding an explicit test case, to be able to catch any new regression in that behavior when we will update yargs again in the future. |
Is this a feature request or a bug?
Bug
What is the current behavior?
Try to load this command
./node_modules/.bin/web-ext run -t chromium --arg="--no-default-browser-check"
But it always return
unknown arguments: default-browser-check, defaultBrowserCheck
I am not able to pass any args to chromium.
What is the expected or desired behavior?
Should be able to pass any chromium args
Version information (for bug reports)
The text was updated successfully, but these errors were encountered: