diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-05-11 09:28:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-11 09:28:04 +0900 |
| commit | 7e827e936bbf0bcbe071fc6e506f23014dbe71bd (patch) | |
| tree | 3c1ad0a589fd50bf1478612eb608703cf6958cc4 /src/bootstrap/flags.rs | |
| parent | 5fc898782c3a5290ac1f8b8be025b0a73f33186e (diff) | |
| parent | dadcb0550d41c343988310ee1946d8dd8f477008 (diff) | |
| download | rust-7e827e936bbf0bcbe071fc6e506f23014dbe71bd.tar.gz rust-7e827e936bbf0bcbe071fc6e506f23014dbe71bd.zip | |
Rollup merge of #84783 - jyn514:fmt-one, r=Mark-Simulacrum
Allow formatting specific subdirectories Fixes https://github.com/rust-lang/rust/issues/71094.
Diffstat (limited to 'src/bootstrap/flags.rs')
| -rw-r--r-- | src/bootstrap/flags.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index d961e067db3..80a60c79edf 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -91,6 +91,7 @@ pub enum Subcommand { paths: Vec<PathBuf>, }, Format { + paths: Vec<PathBuf>, check: bool, }, Doc { @@ -581,7 +582,7 @@ Arguments: Subcommand::Clean { all: matches.opt_present("all") } } - "fmt" => Subcommand::Format { check: matches.opt_present("check") }, + "fmt" => Subcommand::Format { check: matches.opt_present("check"), paths }, "dist" => Subcommand::Dist { paths }, "install" => Subcommand::Install { paths }, "run" | "r" => { |
