github.com/anchore/syft@v1.38.2/syft/pkg/cataloger/rust/test-fixtures/image-audit/src/main.rs (about) 1 use argh::FromArgs; 2 3 #[derive(FromArgs)] 4 #[argh(description = "A simple Hello World CLI application.")] 5 struct Args { 6 #[argh(option, description = "name to greet")] 7 name: String, 8 } 9 10 fn main() { 11 let args: Args = argh::from_env(); 12 println!("Hello, {}!", args.name); 13 }