mozilla / web-ext

A command line tool to help build, run, and test web extensions
Mozilla Public License 2.0
2.68k stars 334 forks source link

Add alias for Firefox ESR (-f esr) #2627

Open Juraj-Masiar opened 1 year ago

Juraj-Masiar commented 1 year ago

Is this a feature request or a bug?

Feature

What is the current behavior?

Currently one can use handy switch "-f nightly" to execute nightly version. But to execute ESR, you need to use whole path, for example: -f "C:\Program Files\Mozilla Firefox ESR\firefox.exe"

What is the expected or desired behavior?

It would be nice if one could use "-f esr" to execute Firefox ESR. Also, while adding new aliases, I would add "-f dev" as alias to alias "firefoxdeveloperedition" :)

Thank you for making my life easier with each update! :)

Rob--W commented 1 year ago

deved is a supported alias for the longer version: https://github.com/mozilla/node-fx-runner/blob/c5e53e849469d798bb4f04409f17950183264867/lib/utils.js#L35

It was introduced to web-ext as a part of https://github.com/mozilla/web-ext/issues/1906 . We should probably docun it more obviously though.