diff options
| author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-12 23:54:49 +0100 |
|---|---|---|
| committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2020-10-14 11:40:53 +0100 |
| commit | b7c6041df1489b866a3f71a74afc180a8458a324 (patch) | |
| tree | a47a3cad17a91d54239e35a7a5658611fb2d8690 /src/bootstrap | |
| parent | c4c5653a48fa6871bf2a07dd56cb7f2801115bfb (diff) | |
| download | rust-b7c6041df1489b866a3f71a74afc180a8458a324.tar.gz rust-b7c6041df1489b866a3f71a74afc180a8458a324.zip | |
x.py: setup: Provide a description of what it does
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/flags.rs | 13 |
1 files changed, 10 insertions, 3 deletions
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 @@ Subcommands: 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 <subcommand> -h`", ); @@ -472,15 +473,21 @@ Arguments: ); } "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() + )); } _ => {} }; |
