Closed ryeng closed 8 years ago
Trying to get some overview over the command line arguments as an excuse for doing actual work.
Features removed in libpredictbranch: -f (quickfind) -p (quickpredict) -s (enable socket operation) -n (socket port) -o (enable file output)
Features removed for now, but will probably reenable:
Old argument | New argument |
---|---|
-north | --latitude north/south |
-south | |
-west | --longitude east/west |
-east |
Kept features:
Old argument (try to keep as short option) | New argument | Comment |
---|---|---|
-u (updatefile) | --update-tle-db file | |
-t (tle-file) | --tle-file file | Union of this and the rest of the TLE-files, or override completely? (Additional option?) |
-q (qth-file) | --qth-file file | |
-a (rotctl_host) | --rotctl host | Let 'host' be optional argument, default to localhost? |
-a1 (rotctl_host) | --rotctl-update-interval update interval | This was a "once per second"-option, but there is a TODO in SingleTrack about enabling also other update intervals. |
-ap (rotctl_port) | --rotctl-port port | |
-h (horizon) | --horizon horizon | |
-U (uplink host) | --uplink host | |
-UP (uplink port) | --uplink-port port | |
-UV (uplink VFO) | --uplink-vfo vfo | |
-D (downlink host) | --downlink host | |
-DP (downlink port) | --downlink-port port | |
-DV (downlink VFO) | --downlink-vfo vfo |
getopt_long doesn't support multiple arguments to each option. Should find a way to enable multiple files for tle-update and for supplying additional tle files (probably by doing e.g. --tle-file file1 --tle-file file2).
Not sure whether option --rotctl explains itself enough, and whether uplink and downlink should be rigctl-uplink/-downlink for consistency's sake. --enable-rotctl? --enable-rigctl-downlink?
Fixed in d6f9f8b55269ff4f12cc7774d3e24f409b874b48
Replace the current command line option parsing with getopt and provide long names for options. A review of all command line options should be conducted as part of this work.
It should be possible to specify options both as command line options and config file options. Coordinate work on this with https://github.com/la1k/flyby/issues/1.