diff options
| author | binarycat <binarycat@envs.net> | 2025-07-03 14:27:47 -0500 |
|---|---|---|
| committer | binarycat <binarycat@envs.net> | 2025-07-08 16:16:48 -0500 |
| commit | 64456e07b8e8550376d5136600fb0c59178df6a0 (patch) | |
| tree | 4359e242ad67c42346add98abbd2d46d641138ca /src/bootstrap | |
| parent | 4a6f6977f98026a9359a3b168b6d50045b1c07a8 (diff) | |
tidy: add `auto:` prefix to --extra-checks syntax
currently this just uses a very simple extension-based heirustic.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/config/flags.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/config/flags.rs b/src/bootstrap/src/core/config/flags.rs index bfc06f90d4f..19e0d3413bb 100644 --- a/src/bootstrap/src/core/config/flags.rs +++ b/src/bootstrap/src/core/config/flags.rs @@ -383,7 +383,10 @@ pub enum Subcommand { bless: bool, #[arg(long)] /// comma-separated list of other files types to check (accepts py, py:lint, - /// py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck, spellcheck:fix) + /// py:fmt, shell, shell:lint, cpp, cpp:fmt, spellcheck) + /// + /// Any argument can be prefixed with "auto:" to only run if + /// relevant files are modified (eg. "auto:py"). extra_checks: Option<String>, #[arg(long)] /// rerun tests even if the inputs are unchanged |
