22 lines
627 B
Rust
22 lines
627 B
Rust
|
|
use clap::Parser;
|
||
|
|
use std::path::PathBuf;
|
||
|
|
|
||
|
|
#[derive(Parser, Debug)]
|
||
|
|
#[command(version)]
|
||
|
|
pub struct Cli {
|
||
|
|
/// Optional image(s) to attach to the initial prompt.
|
||
|
|
#[arg(long = "image", short = 'i', value_name = "FILE", value_delimiter = ',', num_args = 1..)]
|
||
|
|
pub images: Vec<PathBuf>,
|
||
|
|
|
||
|
|
/// Model the agent should use.
|
||
|
|
#[arg(long, short = 'm')]
|
||
|
|
pub model: Option<String>,
|
||
|
|
|
||
|
|
/// Allow running Codex outside a Git repository.
|
||
|
|
#[arg(long = "skip-git-repo-check", default_value_t = false)]
|
||
|
|
pub skip_git_repo_check: bool,
|
||
|
|
|
||
|
|
/// Initial instructions for the agent.
|
||
|
|
pub prompt: Option<String>,
|
||
|
|
}
|