use ::clap::Parser;
use ::std::path::PathBuf;
#[derive(Parser, Debug, Clone)]
#[command(
name = "rsh",
about = "Compile and run a Rust snippet.",
after_help = "If you see this instead of your command's help, try adding -- before arguments."
)]
pub struct RshArgs {
#[arg()]
pub script: PathBuf,
#[arg(long = "rsh-rebuild")]
pub force_rebuild: bool,
#[arg(long = "rsh-build-only")]
pub build_only: bool,
#[arg(long = "rsh-keep-generated")]
pub keep_generated: bool,
#[arg(last = true)]
pub args: Vec<String>,
}
#[test]
fn test_cli_args() {
RshArgs::try_parse_from(&["cmd", "--rsh-rebuild", "script.rsh", "--", "--help"]).unwrap();
}