1 2 3 4 5 6 7 8 9 10 11
use clap::Parser; use std::path::PathBuf; #[derive(Parser, Debug, Clone)] #[command(author, version, about, long_about = None)] pub struct Opts { #[arg(long = "base64")] pub base64: bool, #[arg(required = true)] pub paths: Vec<PathBuf>, }