pub struct Args {Show 25 fields
pub provider: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub system_prompt: Option<String>,
pub append_system_prompt: Vec<String>,
pub thinking: Option<ThinkingLevel>,
pub print: bool,
pub mode: Mode,
pub continue_session: bool,
pub resume: bool,
pub session: Option<String>,
pub session_dir: Option<PathBuf>,
pub no_session: bool,
pub name: Option<String>,
pub tools: Option<Vec<String>>,
pub exclude_tools: Option<Vec<String>>,
pub no_tools: bool,
pub no_builtin_tools: bool,
pub verbose: bool,
pub help: bool,
pub version: bool,
pub messages: Vec<String>,
pub file_args: Vec<PathBuf>,
pub ignored: Vec<String>,
pub errors: Vec<String>,
}Expand description
The parsed argument set. Mirrors TS Args. Fields absent in v1
(unknownFlags, extension/resource discovery) are omitted; everything here
is either honored or explicitly ignored-with-warning.
Fields§
§provider: Option<String>§model: Option<String>§api_key: Option<String>§system_prompt: Option<String>§append_system_prompt: Vec<String>§thinking: Option<ThinkingLevel>§print: bool§mode: Mode§continue_session: bool§resume: bool§session: Option<String>§session_dir: Option<PathBuf>§no_session: bool§name: Option<String>§tools: Option<Vec<String>>§exclude_tools: Option<Vec<String>>§no_tools: bool§no_builtin_tools: bool§verbose: bool§help: bool§version: bool§messages: Vec<String>Positional prompt text (one or more messages). Mirrors TS messages.
file_args: Vec<PathBuf>@file attachments (prefix stripped), as raw paths for the caller to
expand. Mirrors TS fileArgs.
ignored: Vec<String>Warnings about recognized-but-ignored flags (v1 scope cuts). Surfaced
to the user on startup when --verbose.
errors: Vec<String>Hard parse errors (unknown short flags, missing values). Non-empty ⇒
main prints them + help and exits non-zero.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more