diff --git a/docs2/src/cargo_helper/combine.rs b/docs2/src/cargo_helper/combine.rs index 87305fc2..b55f9326 100644 --- a/docs2/src/cargo_helper/combine.rs +++ b/docs2/src/cargo_helper/combine.rs @@ -15,5 +15,6 @@ pub fn options() -> OptionParser { let switch = short('s').help("A switch").switch(); let options = construct!(Options { argument, switch }); + // Given the cargo command is `cargo pretty`. cargo_helper("pretty", options).to_options() } diff --git a/docs2/src/cargo_helper/derive.rs b/docs2/src/cargo_helper/derive.rs index 5d38a1ac..9aede496 100644 --- a/docs2/src/cargo_helper/derive.rs +++ b/docs2/src/cargo_helper/derive.rs @@ -3,7 +3,7 @@ use bpaf::*; // #[allow(dead_code)] #[derive(Debug, Clone, Bpaf)] -#[bpaf(options("pretty"))] +#[bpaf(options("pretty"))] // Given the cargo command is `cargo pretty`. pub struct Options { /// An argument argument: usize, diff --git a/src/docs2/cargo_helper.md b/src/docs2/cargo_helper.md index 118ec462..c0259ebe 100644 --- a/src/docs2/cargo_helper.md +++ b/src/docs2/cargo_helper.md @@ -14,6 +14,7 @@ pub fn options() -> OptionParser { let switch = short('s').help("A switch").switch(); let options = construct!(Options { argument, switch }); + // Given the cargo command is `cargo pretty`. cargo_helper("pretty", options).to_options() } @@ -27,7 +28,7 @@ fn main() { ```no_run #[derive(Debug, Clone, Bpaf)] -#[bpaf(options("pretty"))] +#[bpaf(options("pretty"))] // Given the cargo command is `cargo pretty`. pub struct Options { /// An argument argument: usize,