tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit e3c88f4aadd775d5b0f6c845a6d682b7a9cb8190
parent 8c77f817e112ea603b7f27936e631f7d365dd9d6
Author: Dave Townsend <dtownsend@oxymoronical.com>
Date:   Tue,  4 Nov 2025 09:21:47 +0000

Bug 1997884: Fix passing extra arguments to eslint. r=linter-reviewers,ahal

Differential Revision: https://phabricator.services.mozilla.com/D271041

Diffstat:
Mpython/mozlint/mozlint/cli.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/python/mozlint/mozlint/cli.py b/python/mozlint/mozlint/cli.py @@ -236,7 +236,10 @@ class MozlintParser(ArgumentParser): args.extra_args = extra self.validate(args) - return args, extra + # Any extra arguments returned from `parse_known_args` are considered an + # error. Since we stash these into `extra_args` we just return an empty + # list. + return args, [] def validate(self, args): if args.edit and not os.environ.get("EDITOR"):