mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
mach: Document -- interaction for clippy (#43221)
The same issue also affects check and other commands that support `--`, but I'm not sure if it makes sense to document it everywhere. Testing: Changes the help message, manual testing required. Fixes: #43214 Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c80bdd9c92
commit
e7cac92e24
@@ -102,8 +102,15 @@ class MachCommands(CommandBase):
|
||||
assert isinstance(status, int)
|
||||
return status
|
||||
|
||||
@Command("clippy", description='Run "cargo clippy"', category="devenv")
|
||||
@CommandArgument("params", default=None, nargs="...", help="Command-line arguments to be passed through to clippy")
|
||||
@Command("clippy", description='Run "cargo clippy.', category="devenv")
|
||||
@CommandArgument(
|
||||
"params",
|
||||
default=None,
|
||||
nargs="...",
|
||||
help="Command-line arguments to be passed through to clippy. "
|
||||
"Note that this can be separated via `--` from arguments for `mach`. "
|
||||
"Arguments for clippy itself need another `--`, e.g. `./mach clippy -- -- --deny clippy::lint_name",
|
||||
)
|
||||
@CommandArgument(
|
||||
"--github-annotations",
|
||||
default=False,
|
||||
|
||||
Reference in New Issue
Block a user