From 2da98775fbb8b1e5beb3b057b0b4c2abb271c7ee Mon Sep 17 00:00:00 2001 From: Mitchell Hentges Date: Wed, 9 Mar 2022 15:52:48 +0000 Subject: [PATCH] Bug 1756224: Update MozlintParser docs about default `paths` r=ahal Updates parser documentation to clarify that, if no `paths` are provided, then only those discovered by `--outgoing` and `--workdir` are linted. Differential Revision: https://phabricator.services.mozilla.com/D139158 --- python/mozlint/mozlint/cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/mozlint/mozlint/cli.py b/python/mozlint/mozlint/cli.py index 49736146bded..71e7b30b4ef6 100644 --- a/python/mozlint/mozlint/cli.py +++ b/python/mozlint/mozlint/cli.py @@ -20,7 +20,8 @@ class MozlintParser(ArgumentParser): "default": None, "help": "Paths to file or directories to lint, like " "'browser/components/loop' or 'mobile/android'. " - "Defaults to the current directory if not given.", + "If not provided, defaults to the files changed according " + "to --outgoing and --workdir.", }, ], [