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

Document how $WEB_EXT_PREF works #725

Open
kumar303 opened this issue Jan 3, 2017 · 3 comments
Open

Document how $WEB_EXT_PREF works #725

kumar303 opened this issue Jan 3, 2017 · 3 comments

Comments

@kumar303
Copy link
Contributor

kumar303 commented Jan 3, 2017

How does setting the $WEB_EXT_PREF environment variable work when setting multiple preference values? Once we figure it out, let's update the docs: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/web-ext_command_reference?document_saved=true#--pref

@rpl
Copy link
Member

rpl commented Jan 3, 2017

@kumar303 These are the relevant pieces from the yargs sources:

it looks like nested keys are supported, but unfortunately multiple instances of the same option is not a supported scenario :-(

@kumar303
Copy link
Contributor Author

kumar303 commented Jan 3, 2017

We might need to support a colon here after all just for environment variable support :) Something like:

export WEB_EXT_PREF="first.pref=value:second.pref=true"

@Natim
Copy link

Natim commented Feb 15, 2018

You can use the --pref option multiple times:

web-ext run -s build/ --pref intl.locale.requested=ar --pref intl.locale.matchOS=false  --pref general.useragent.locale=ar

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

3 participants