1
0
mirror of https://gitea.farpn.net/w1cdn/mwtchahrd.git synced 2025-11-18 11:56:37 -06:00

Allow none values for lat and lon of spotter so empty values get sent to spothole.

This commit is contained in:
mattbk
2025-11-08 20:58:36 -06:00
parent 21499a93d9
commit 7ce55f020b

View File

@@ -80,12 +80,12 @@ struct Cli {
freq: u32, freq: u32,
/// Spotter latitude DD.dddd /// Spotter latitude DD.dddd
#[arg(short = 'y', long, default_value_t = -9999.0_f64, allow_negative_numbers = true)] #[arg(short = 'y', long, allow_negative_numbers = true)]
my_lat: f64, my_lat: Option<f64>,
/// Spotter longitude DD.dddd; to send negaitve (W or S), use = e.g. --my-lon=-97.1 /// Spotter longitude DD.dddd; to send negaitve (W or S), use = e.g. --my-lon=-97.1
#[arg(short = 'x', long, default_value_t = -9999.0_f64, allow_negative_numbers = true)] #[arg(short = 'x', long, allow_negative_numbers = true)]
my_lon: f64, my_lon: Option<f64>,
} }