]> git.lizzy.rs Git - rust.git/commitdiff
x.py: setup: Provide a description of what it does
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 12 Oct 2020 22:54:49 +0000 (23:54 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 14 Oct 2020 10:40:53 +0000 (11:40 +0100)
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
src/bootstrap/flags.rs

index f38c6876747685bceaa11e895fe0903cbb572dfd..22cfd0c56431d878a858c9dae16c840a721fab9f 100644 (file)
@@ -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 <subcommand> -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()
+                ));
             }
             _ => {}
         };