Skip to content

Commit

Permalink
update --net-only help text
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Dec 10, 2024
1 parent c3214b3 commit 2b63384
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion help.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static struct argp_option optionsReadsb[] = {
{0,0,0,0, "Network options:", 2},
{"net-connector", OptNetConnector, "<ip,port,protocol>", 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=<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, "<ip>", 0, "IP address to bind to (default: Any; Use 127.0.0.1 for private)", 2},
{"net-bo-port", OptNetBoPorts, "<ports>", 0, "TCP Beast output listen ports (default: 0)", 2},
{"net-bi-port", OptNetBiPorts, "<ports>", 0, "TCP Beast input listen ports (default: 0)", 2},
Expand Down
7 changes: 3 additions & 4 deletions readsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2b63384

Please sign in to comment.