1 2 3 4 5 6 7 8 9 10 11
use clap::Parser; use std::path::PathBuf; /// Search for a pattern in a file and display the lines that contain it. #[derive(Parser)] pub struct Cli { /// The pattern to search for pub pattern: String, /// The path to the file to read pub path: PathBuf, }