From 07c57e85a895123401849dd1c1ee3033c602e5de Mon Sep 17 00:00:00 2001 From: mattbk Date: Thu, 13 Nov 2025 21:23:32 -0600 Subject: [PATCH] Snapshot. --- src/main.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.rs b/src/main.rs index 77f1e27..c387f78 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,6 +87,10 @@ struct Cli { #[arg(short = 'x', long, allow_negative_numbers = true)] my_lon: Option, + /// Filter out spots from these callsign-UUID combinations (self spots, for example), comma-separated + #[arg(short = 't', long, value_delimiter = ',')] + filter: Option, + } /// 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" { 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. if !cli.debug {