Skip to content

Commit fccbb50

Browse files
authored
fix(chat ux): Default /context to /context help (#1133)
1 parent 520be85 commit fccbb50

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
@@ -323,7 +323,9 @@ impl Command {
323323
},
324324
"context" => {
325325
if parts.len() < 2 {
326-
return Err(ContextSubcommand::usage_msg("Missing subcommand for /context."));
326+
return Ok(Self::Context {
327+
subcommand: ContextSubcommand::Help,
328+
});
327329
}
328330

329331
macro_rules! usage_err {

0 commit comments

Comments
 (0)