pub struct Args {
pub system_prompt_files: Vec<String>,
pub append_prompt_file: Option<String>,
pub model: Option<String>,
}Expand description
Command-line arguments for the Claude Dialog application
This structure defines all available command-line options for configuring the Claude conversation interface.
§Examples
use claude_dialog::cli::Args;
let args = Args {
system_prompt_files: vec!["prompt1.md".to_string(), "prompt2.md".to_string()],
append_prompt_file: None,
model: Some("claude-3-opus".to_string()),
};
assert_eq!(args.system_prompt_files.len(), 2);
assert!(args.append_prompt_file.is_none());Fields§
§system_prompt_files: Vec<String>Custom system prompt files (can be specified multiple times)
These files will completely replace the default system prompt. Multiple files can be specified and will be concatenated in order.
§Example
claude-dialog --system-prompt prompt1.md --system-prompt prompt2.mdappend_prompt_file: Option<String>Append to default system prompt
This file’s contents will be appended to the default system prompt
rather than replacing it. Cannot be used together with --system-prompt.
§Example
claude-dialog --append-system-prompt additional_instructions.mdmodel: Option<String>Claude model to use
Specifies which Claude model to use for the conversation. Common options include: claude-3-opus, claude-3-sonnet, claude-3-haiku
§Example
claude-dialog --model claude-3-opusTrait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
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