Skip to content

Commit

Permalink
improve viewadsb help
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed May 15, 2024
1 parent b325669 commit 88c0eca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion help.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static struct argp_option optionsViewadsb[] = {
{"quiet", OptQuiet, 0, 0, "Disable output (default)", 1},
{"debug", OptDebug, "<flags>", 0, "Debug mode (verbose), n: network, P: CPR, S: speed check", 1},
{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-connector", OptNetConnector, "<ip,port,protocol>", 0, "Establish connection, can be specified multiple times (viewadsb default: --net-connector 127.0.0.1,30005,beast_in viewadsb first usage overrides default, second usage adds another input/output) 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},
{0,0,0,0, "Help options:", 100},
{ 0 }
};
Expand Down
11 changes: 9 additions & 2 deletions readsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2139,7 +2139,10 @@ int parseCommandLine(int argc, char **argv) {
#undef verstring

if (Modes.viewadsb) {
doc = "vieadsb Mode-S/ADSB/TIS commandline viewer ";
doc = "vieadsb Mode-S/ADSB/TIS commandline viewer "
"\n\nBy default, viewadsb will TCP connect to 127.0.0.1:30005 as a data source."
"\nTypical readsb / dump1090 installs will provide beast data on port 30005."
;
}

struct argp_option *options = Modes.viewadsb ? optionsViewadsb : optionsReadsb;
Expand All @@ -2165,7 +2168,11 @@ int parseCommandLine(int argc, char **argv) {

print_commandline(argc, argv);

log_with_timestamp("readsb starting up.");
if (Modes.viewadsb) {
log_with_timestamp("viewadsb starting up.");
} else {
log_with_timestamp("readsb starting up.");
}
fprintf(stderr, VERSION_STRING"\n");

return 0;
Expand Down

0 comments on commit 88c0eca

Please sign in to comment.