From 2b633849664885266e8e8e1ed5c37afc12b409e1 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 10 Dec 2024 22:31:21 +0000 Subject: [PATCH] update --net-only help text --- help.h | 2 +- readsb.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/help.h b/help.h index c4e8a33d..a5098d4d 100644 --- a/help.h +++ b/help.h @@ -119,7 +119,7 @@ static struct argp_option optionsReadsb[] = { {0,0,0,0, "Network options:", 2}, {"net-connector", OptNetConnector, "", 0, "Establish connection, can be specified multiple times (e.g. 127.0.0.1,23004,beast_out) Protocols: beast_out, beast_in, raw_out, raw_in, sbs_in, sbs_in_jaero, sbs_out, sbs_out_jaero, vrs_out, json_out, gpsd_in, uat_in, uat_replay_out, planefinder_in, asterix_in, asterix_out (one failover ip/address,port can be specified: primary-address,primary-port,protocol,failover-address,failover-port) (any position in the comma separated list can also be either silent_fail or uuid=)", 2}, {"net", OptNet, 0, 0, "Enable networking", 2}, - {"net-only", OptNetOnly, 0, 0, "Enable just networking, no RTL device or file used", 2}, + {"net-only", OptNetOnly, 0, 0, "Legacy Option, Enable networking, use --net instead", 2}, {"net-bind-address", OptNetBindAddr, "", 0, "IP address to bind to (default: Any; Use 127.0.0.1 for private)", 2}, {"net-bo-port", OptNetBoPorts, "", 0, "TCP Beast output listen ports (default: 0)", 2}, {"net-bi-port", OptNetBiPorts, "", 0, "TCP Beast input listen ports (default: 0)", 2}, diff --git a/readsb.c b/readsb.c index d79e9a69..527a93a7 100644 --- a/readsb.c +++ b/readsb.c @@ -1617,16 +1617,15 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { case OptNet: Modes.net = 1; break; + case OptNetOnly: + Modes.net = 1; + break; case OptModeAc: Modes.mode_ac = 1; break; case OptModeAcAuto: Modes.mode_ac_auto = 1; break; - case OptNetOnly: - Modes.net = 1; - Modes.net_only = 1; - break; case OptQuiet: Modes.quiet = 1; break;