Compare commits

...

1 Commits

Author SHA1 Message Date
Jeff Moe b222093fa6 Add owner, remark to septool 2022-06-16 12:22:10 -06:00
1 changed files with 7 additions and 2 deletions

View File

@ -133,6 +133,8 @@ try
bool doVERSION{false}, doSTDOUT{false};
CLI::App app(program);
string sourceaddr;
string owner;
string remark;
bool quiet{false};
app.add_option("--source", sourceaddr, "Connect to this IP address:port to source SBF (otherwise stdin)");
app.add_option("--destination,-d", destinations, "Send output to this IPv4/v6 address");
@ -140,6 +142,9 @@ try
app.add_option("--quiet", quiet, "Don't emit noise");
app.add_flag("--version", doVERSION, "show program version and copyright");
app.add_flag("--stdout", doSTDOUT, "Emit output to stdout");
app.add_option("--owner,-o", owner, "Name/handle/nick of owner/operator");
app.add_option("--remark", remark, "Remark for this station");
try {
app.parse(argc, argv);
} catch(const CLI::Error &e) {
@ -376,8 +381,8 @@ try
nmm.mutable_od()->set_clockaccuracyns(0);
nmm.mutable_od()->set_freqaccuracyps(0);
nmm.mutable_od()->set_owner("Septentrio");
nmm.mutable_od()->set_remark("");
nmm.mutable_od()->set_owner(owner);
nmm.mutable_od()->set_remark(remark);
nmm.mutable_od()->set_recvgithash(g_gitHash);
nmm.mutable_od()->set_uptime(time(0) - starttime);
ns.emitNMM( nmm);