Skip to content

Commit 38b9e9e

Browse files
committed
fix(/profile ux): default /profile to /profile help
1 parent bcd0c0b commit 38b9e9e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/q_cli/src/cli/chat/command.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,9 @@ impl Command {
318318
"q" | "exit" | "quit" => Self::Quit,
319319
"profile" => {
320320
if parts.len() < 2 {
321-
return Err(ProfileSubcommand::usage_msg("Missing subcommand for /profile."));
321+
return Ok(Self::Profile {
322+
subcommand: ProfileSubcommand::Help,
323+
});
322324
}
323325

324326
macro_rules! usage_err {

0 commit comments

Comments
 (0)