| 483 | |
| 484 | |
| 485 | static void usage(FILE *fout) |
| 486 | { |
| 487 | fprintf(fout, "Usage: rotctl [OPTION]... [COMMAND]...\n" |
| 488 | "Send COMMANDs to a connected antenna rotator.\n\n"); |
| 489 | |
| 490 | fprintf(fout, |
| 491 | " -m, --model=ID select rotator model number. See model list (-l)\n" |
| 492 | " -r, --rot-file=DEVICE set device of the rotator to operate on\n" |
| 493 | " -R, --rot-file2=DEVICE set device of the 2nd rotator controller to operate on\n" |
| 494 | " -s, --serial-speed=BAUD set serial speed of the serial port\n" |
| 495 | " -t, --send-cmd-term=CHAR set send_cmd command termination char\n" |
| 496 | " -C, --set-conf=PARM=VAL[,...] set config parameters\n" |
| 497 | " -o, --set-azoffset=VAL set offset for azimuth\n" |
| 498 | " -O, --set-eloffset=VAL set offset for elevation\n" |
| 499 | " -L, --show-conf list all config parameters\n" |
| 500 | " -l, --list list all model numbers and exit\n" |
| 501 | " -u, --dump-caps dump capabilities and exit\n" |
| 502 | #ifdef HAVE_READLINE_HISTORY |
| 503 | " -i, --read-history read prior interactive session history\n" |
| 504 | " -I, --save-history save current interactive session history\n" |
| 505 | #endif |
| 506 | " -v, --verbose set verbose mode, cumulative (-v to -vvvvv)\n" |
| 507 | " -Z, --debug-time-stamps enable time stamps for debug messages\n" |
| 508 | " -h, --help display this help and exit\n" |
| 509 | " -V, --version output version information and exit\n" |
| 510 | " - read commands from standard input\n" |
| 511 | "\n" |
| 512 | ); |
| 513 | |
| 514 | usage_rot(fout); |
| 515 | } |
| 516 | |
| 517 | |
| 518 | static void short_usage(FILE *fout) |