Skip to content

Commit 6e9e040

Browse files
committed
x.py: setup: Offer keywords in interactive prompt
We understand these profile names because we use .to_str(). Mention them in the question. Signed-off-by: Ian Jackson <[email protected]>
1 parent b7c6041 commit 6e9e040

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/setup.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl Profile {
4040
pub fn all_for_help(indent: &str) -> String {
4141
let mut out = String::new();
4242
for choice in Profile::all() {
43-
writeln!(&mut out, "{}{}", indent, choice).unwrap();
43+
writeln!(&mut out, "{}{}: {}", indent, choice, choice.purpose()).unwrap();
4444
}
4545
out
4646
}
@@ -143,7 +143,7 @@ pub fn interactive_path() -> io::Result<Profile> {
143143
let mut input = String::new();
144144
println!("Welcome to the Rust project! What do you want to do with x.py?");
145145
for (letter, profile) in abbrev_all() {
146-
println!("{}) {}", letter, profile.purpose());
146+
println!("{}) {}: {}", letter, profile, profile.purpose());
147147
}
148148
let template = loop {
149149
print!(

0 commit comments

Comments
 (0)