Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--
133
-rw-r--r--
2085
-rw-r--r--
3607
-rwuse anyhow::{Error, Result}; use std::path::PathBuf; #[derive(Default)] pub struct Args { pub display_help: bool, pub display_version: bool, pub load_tutor: bool, pub verbosity: u64, pub files: Vec<PathBuf>, } impl Args { pub fn parse_args() -> Result<Args> { let mut args = Args::default(); let argv: Vec<String> = std::env::args().collect(); let mut iter = argv.iter(); iter.next(); // skip the program, we don't care about that for arg in &mut iter { match arg.as_str() { "--" => break, // stop parsing at this point treat the remaining