| 680 | |
| 681 | |
| 682 | static void usage(FILE *fout) |
| 683 | { |
| 684 | fprintf(fout, "Usage: ampctld [OPTION]...\n" |
| 685 | "Daemon serving COMMANDs to a connected amplifier.\n\n"); |
| 686 | |
| 687 | fprintf(fout, |
| 688 | " -m, --model=ID select amplifier model number. See model list (-l)\n" |
| 689 | " -r, --amp-file=DEVICE set device of the amplifier to operate on\n" |
| 690 | " -s, --serial-speed=BAUD set serial speed of the serial port\n" |
| 691 | " -t, --port=NUM set TCP listening port, default %s\n" |
| 692 | " -T, --listen-addr=IPADDR set listening IP address, default ANY\n" |
| 693 | " -C, --set-conf=PARM=VAL[,...] set config parameters\n" |
| 694 | " -L, --show-conf list all config parameters\n" |
| 695 | " -l, --list list all model numbers and exit\n" |
| 696 | " -u, --dump-caps dump capabilities and exit\n" |
| 697 | " -v, --verbose set verbose mode, cumulative (-v to -vvvvv)\n" |
| 698 | " -Z, --debug-time-stamps enable time stamps for debug messages\n" |
| 699 | " -h, --help display this help and exit\n" |
| 700 | " -V, --version output version information and exit\n\n", |
| 701 | portno); |
| 702 | |
| 703 | usage_amp(fout); |
| 704 | } |
| 705 | |
| 706 | |
| 707 | static void short_usage(FILE *fout) |