Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions crates/minimal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ pub struct AttachArgs {
#[arg(add = completion::session_completer())]
pub session: Option<String>,
/// Command to exec in the session context (non-interactive)
#[arg(long, short)]
#[arg(long, short, hide = true)]
pub command: Option<String>,
}

Expand Down Expand Up @@ -1865,8 +1865,9 @@ fn ensure_interactive_attach_tty(stdin_is_tty: bool) -> Result<(), anyhow::Error
} else {
bail!(
"`min session attach` needs an interactive terminal, but stdin is not a TTY. \
Run it from a terminal, or use `min session attach --command <cmd>` to run a \
single command non-interactively."
Run it from a terminal, or use the non-interactive escape hatch \
`min session attach --command <cmd>` (a hidden flag, kept for scripted \
callers) to run a single command."
)
}
}
Expand Down