Skip to content
Snippets Groups Projects
Commit 9e9ef092 authored by pv42's avatar pv42 Committed by Patrick José Pereira
Browse files

Feat: add cli argument documentation

parent 63b6af9f
Branches
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment