Add cargo +nightly dev generate-all (#1404)

This commit is contained in:
Charlie Marsh 2022-12-27 10:07:18 -05:00 committed by GitHub
parent 9106d5338b
commit b4dbe62da0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 60 additions and 24 deletions

View file

@ -18,7 +18,7 @@ const END_PRAGMA: &str = "<!-- End auto-generated options sections. -->";
pub struct Cli {
/// Write the generated table to stdout (rather than to `README.md`).
#[arg(long)]
dry_run: bool,
pub(crate) dry_run: bool,
}
fn emit_field(output: &mut String, field: &OptionField, group_name: Option<&str>) {