use sarge::prelude::*; fn main() { let mut parser = ArgumentReader::new(); parser.doc = Some("An example demonstrating automatic documentation generation.".into()); parser.add::(tag::both('a', "abc").env("ABC").doc("Super duper docs")); parser.add::(tag::short('b').env("BAR")); parser.add::(tag::long("baz-arg")); parser.add::(tag::both('f', "foo").doc("Hello, World!")); parser.add::(tag::short('x').doc("Testing testing 123")); parser.add::(tag::long("xy").doc("Testing testing 456")); parser.add::>(tag::env("ENV_ONLY").doc( "This is really, really long, multiline argument\ndocumentation, it'll wrap nicely I hope", )); parser.print_help(); }