use std::time::Duration;
use clap::Parser;
use serde::Deserialize;
#[derive(Parser, Debug, Deserialize, Default)]
pub struct ProfileArgs {
#[arg(long = "token-pattern", value_name = "REGEX")]
pub token_pattern: Option<String>,
#[arg(long = "stdout-file")]
pub stdout_file: Option<String>,
#[arg(last = true, required = true)]
pub cmd: Vec<String>,
#[arg(long = "use-root")]
pub use_root: bool,
#[clap(value_parser = humantime::parse_duration)]
#[arg(long = "init-timeout")]
pub init_timeout: Option<Duration>,
}