cli: don't reuse ui.hint_default() instance to print multiple hints

ui.hint_*() calls will be inlined by the next commit.
This commit is contained in:
Yuya Nishihara 2024-06-17 12:53:25 +09:00
parent 1ab0c91e51
commit a162e4f1a4

View file

@ -2485,6 +2485,8 @@ fn resolve_default_command(
if args.is_none() {
if let Some(mut writer) = ui.hint_default() {
writeln!(writer, "Use `jj -h` for a list of available commands.")?;
}
if let Some(mut writer) = ui.hint_no_heading() {
writeln!(
writer,
"Run `jj config set --user ui.default-command log` to disable this \