pub struct Args {Show 27 fields
pub flags: ArgsFlags,
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<ModelThinkingLevel>,
pub mode: Option<Mode>,
pub name: Option<String>,
pub session: Option<String>,
pub session_id: Option<String>,
pub fork: Option<String>,
pub session_dir: Option<String>,
pub models: Vec<String>,
pub tools: Vec<String>,
pub exclude_tools: Vec<String>,
pub extensions: Vec<String>,
pub export: Option<String>,
pub skills: Vec<String>,
pub prompt_templates: Vec<String>,
pub themes: Vec<String>,
pub list_models: ListModels,
pub project_trust_override: Option<bool>,
pub messages: Vec<String>,
pub file_args: Vec<String>,
pub unknown_flags: IndexMap<String, FlagValue>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Parsed CLI arguments.
Fields§
§flags: ArgsFlagsBoolean command-line switches.
provider: Option<String>--provider.
model: Option<String>--model.
api_key: Option<String>--api-key.
system_prompt: Option<String>--system-prompt.
append_system_prompt: Vec<String>Repeated --append-system-prompt.
thinking: Option<ModelThinkingLevel>--thinking.
mode: Option<Mode>--mode.
name: Option<String>--name / -n.
session: Option<String>--session.
session_id: Option<String>--session-id.
fork: Option<String>--fork.
session_dir: Option<String>--session-dir.
models: Vec<String>Comma-split --models.
tools: Vec<String>Comma-split --tools / -t.
exclude_tools: Vec<String>Comma-split --exclude-tools / -xt.
extensions: Vec<String>Repeated --extension / -e.
export: Option<String>--export.
skills: Vec<String>Repeated --skill.
prompt_templates: Vec<String>Repeated --prompt-template.
themes: Vec<String>Repeated --theme.
list_models: ListModels--list-models [search].
project_trust_override: Option<bool>--approve/-a or --no-approve/-na.
messages: Vec<String>Positional message strings.
file_args: Vec<String>@file paths without the leading @.
unknown_flags: IndexMap<String, FlagValue>Unknown long flags in encounter order.
diagnostics: Vec<Diagnostic>Warnings and errors collected during parse.
Trait Implementations§
impl StructuralPartialEq for Args
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.