oxidecomputer / maghemite

A routing stack written in Rust.
Mozilla Public License 2.0
36 stars 2 forks source link

fix originate4 cli arg ordering #320

Closed rcgoodfellow closed 2 months ago

rcgoodfellow commented 3 months ago

Hit this issue doing some debugging.

$ ./target/debug/mgadm bgp config origin ipv4 create
thread 'main' panicked at /home/ry/.cargo/registry/src/index.crates.io-6f17d22bba15001f/clap_builder-4.5.10/src/builder/debug_asserts.rs:638:17:
Found non-required positional argument with a lower index than a required positional argument: "prefixes" index Some(1)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Abort (core dumped)

This PR fixes the issue described above.