Snapshot.

This commit is contained in:
mattbk
2025-11-13 21:23:32 -06:00
parent 875da10174
commit 07c57e85a8

View File

@@ -87,6 +87,10 @@ struct Cli {
#[arg(short = 'x', long, allow_negative_numbers = true)] #[arg(short = 'x', long, allow_negative_numbers = true)]
my_lon: Option<f64>, my_lon: Option<f64>,
/// Filter out spots from these callsign-UUID combinations (self spots, for example), comma-separated
#[arg(short = 't', long, value_delimiter = ',')]
filter: Option<String>,
} }
/// Convert a byte slice into a hex-dump string for debugging purposes. /// Convert a byte slice into a hex-dump string for debugging purposes.
@@ -450,6 +454,11 @@ fn handle_frame(frame: &AgwFrame, cli: &Cli, buffers: &mut BufferManager, loc_st
if cli.ui_only && summary != "UI" { if cli.ui_only && summary != "UI" {
return; return;
} }
// Ignore frames where source matches one of the filtered strings
TODO finish this
if cli.filter {
return;
}
// In non-debug mode, print the session line and any additional lines. // In non-debug mode, print the session line and any additional lines.
if !cli.debug { if !cli.debug {