Skip to content

Commit b7c6041

Browse files
ijacksonJoshua Nelson
and
Joshua Nelson
committed
x.py: setup: Provide a description of what it does
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
1 parent c4c5653 commit b7c6041

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/bootstrap/flags.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Subcommands:
125125
dist Build distribution artifacts
126126
install Install distribution artifacts
127127
run, r Run tools contained in this repository
128+
setup Create a config.toml (making it easier to use `x.py` itself)
128129
129130
To learn more about a subcommand, run `./x.py <subcommand> -h`",
130131
);
@@ -472,15 +473,21 @@ Arguments:
472473
);
473474
}
474475
"setup" => {
475-
subcommand_help.push_str(
476+
subcommand_help.push_str(&format!(
476477
"\n
478+
x.py setup creates a `config.toml` which changes the defaults for x.py itself.
479+
477480
Arguments:
478481
This subcommand accepts a 'profile' to use for builds. For example:
479482
480483
./x.py setup library
481484
482-
The profile is optional and you will be prompted interactively if it is not given.",
483-
);
485+
The profile is optional and you will be prompted interactively if it is not given.
486+
The following profiles are available:
487+
488+
{}",
489+
Profile::all_for_help(" ").trim_end()
490+
));
484491
}
485492
_ => {}
486493
};

0 commit comments

Comments
 (0)