From: Ian Jackson Date: Mon, 12 Oct 2020 22:54:49 +0000 (+0100) Subject: x.py: setup: Provide a description of what it does X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=b7c6041df1489b866a3f71a74afc180a8458a324;p=rust.git x.py: setup: Provide a description of what it does Co-authored-by: Joshua Nelson --- diff --git a/src/bootstrap/flags.rs b/src/bootstrap/flags.rs index f38c6876747..22cfd0c5643 100644 --- a/src/bootstrap/flags.rs +++ b/src/bootstrap/flags.rs @@ -125,6 +125,7 @@ pub fn parse(args: &[String]) -> Flags { dist Build distribution artifacts install Install distribution artifacts run, r Run tools contained in this repository + setup Create a config.toml (making it easier to use `x.py` itself) To learn more about a subcommand, run `./x.py -h`", ); @@ -472,15 +473,21 @@ pub fn parse(args: &[String]) -> Flags { ); } "setup" => { - subcommand_help.push_str( + subcommand_help.push_str(&format!( "\n +x.py setup creates a `config.toml` which changes the defaults for x.py itself. + Arguments: This subcommand accepts a 'profile' to use for builds. For example: ./x.py setup library - The profile is optional and you will be prompted interactively if it is not given.", - ); + The profile is optional and you will be prompted interactively if it is not given. + The following profiles are available: + +{}", + Profile::all_for_help(" ").trim_end() + )); } _ => {} };