diff --git a/mavlink-bindgen/src/cli.rs b/mavlink-bindgen/src/cli.rs index 30fee8a843b2e3af12e0fb57b571a8663ce332a5..5ff37b26f1621ff41b7970a04e09af51262ea4b2 100644 --- a/mavlink-bindgen/src/cli.rs +++ b/mavlink-bindgen/src/cli.rs @@ -4,11 +4,16 @@ use clap::Parser; use mavlink_bindgen::{emit_cargo_build_messages, format_generated_code, generate, BindGenError}; #[derive(Parser)] +/// Generate Rust bindings from MAVLink message dialect XML files. struct Cli { + /// Path to the directory containing the MAVLink dialect definitions. definitions_dir: PathBuf, + /// Path to the directory where the code is generated into, must already exist. destination_dir: PathBuf, + /// format code generated code #[arg(long)] format_generated_code: bool, + /// prints cargo build messages indicating when the code has to be rebuild #[arg(long)] emit_cargo_build_messages: bool, }