diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-18 18:03:38 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2017-07-20 11:24:37 -0600 |
| commit | 56128fb3acdbb40876d1fc8aee613792ebef3080 (patch) | |
| tree | c8753059843a319610a541faa01b990a0aac6e0f /src/bootstrap/flags.rs | |
| parent | bca1e2ffd1658e800e15e730dee5d6cc02722270 (diff) | |
| download | rust-56128fb3acdbb40876d1fc8aee613792ebef3080.tar.gz rust-56128fb3acdbb40876d1fc8aee613792ebef3080.zip | |
Implement available paths list.
Diffstat (limited to 'src/bootstrap/flags.rs')
| -rw-r--r-- | src/bootstrap/flags.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index b1ea441795e..1a3a008ed26 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -23,6 +23,7 @@ use getopts::Options; use Build; use config::Config; use metadata; +use builder::Builder; use cache::{Interned, INTERNER}; @@ -248,11 +249,8 @@ Arguments: let mut build = Build::new(flags, config); metadata::build(&mut build); - // FIXME: How should this happen now? Not super clear... - // let maybe_rules_help = step::build_rules(&build).get_help(subcommand); - // if maybe_rules_help.is_some() { - // extra_help.push_str(maybe_rules_help.unwrap().as_str()); - // } + let maybe_rules_help = Builder::get_help(&build, subcommand.as_str()); + extra_help.push_str(maybe_rules_help.unwrap_or_default().as_str()); } else { extra_help.push_str(format!("Run `./x.py {} -h -v` to see a list of available paths.", subcommand).as_str()); |
