[Hamlib-developer] [Hamlib/Hamlib] 942214: Direct usage text to stderr or stdout depending on...
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Nate B. <no...@gi...> - 2025-09-23 02:31:47
|
Branch: refs/heads/master Home: https://github.com/Hamlib/Hamlib Commit: 942214da6eb95c6309d6d50aa5be52c54a4a5f96 https://github.com/Hamlib/Hamlib/commit/942214da6eb95c6309d6d50aa5be52c54a4a5f96 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-21 (Sun, 21 Sep 2025) Changed paths: M tests/ampctl.c M tests/ampctld.c M tests/rigctl.c M tests/rigctlcom.c M tests/rigctld.c M tests/rigctlsync.c M tests/rigctltcp.c M tests/rigmem.c M tests/rigsmtr.c M tests/rigswr.c M tests/rotctl.c M tests/rotctld.c Log Message: ----------- Direct usage text to stderr or stdout depending on context Prints usage text to stdout when requested with -h/--help or to stderr otherwise. Test cases: tests/rigctl --help # prints to stdout tests/rigctl -Q # prints to stderr Commit: 6708caa73a0372ebc650cca886df3edf10d8c8f0 https://github.com/Hamlib/Hamlib/commit/6708caa73a0372ebc650cca886df3edf10d8c8f0 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-21 (Sun, 21 Sep 2025) Changed paths: M tests/ampctl.c M tests/ampctld.c M tests/rigctl.c M tests/rigctlcom.c M tests/rigctld.c M tests/rigctlsync.c M tests/rigctltcp.c M tests/rigmem.c M tests/rigsmtr.c M tests/rigswr.c M tests/rotctl.c M tests/rotctld.c Log Message: ----------- Print a shorter usage text for unknown options Test case: tests/ampctl -Q tests/ampctld -Q tests/rigctl -Q tests/rigctld -Q tests/rotctl -Q tests/rotctld -Q Expected output: /home/ham/Hamlib/tests/.libs/ampctl: invalid option -- 'Q' Usage: ampctl [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] [COMMAND...|-] Send COMMANDs to a connected amplifier. Type: ampctl --help for extended usage. /home/ham/Hamlib/tests/.libs/ampctld: invalid option -- 'Q' Usage: ampctld [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] Daemon serving COMMANDs to a connected amplifier. Type: ampctld --help for extended usage. /home/ham/Hamlib/tests/.libs/rigctl: invalid option -- 'Q' Usage: rigctl [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] [COMMAND...|-] Send COMMANDs to a connected radio transceiver or receiver. Type: rigctl --help for extended usage. /home/ham/Hamlib/tests/.libs/rigctld: invalid option -- 'Q' Usage: rigctld [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] Daemon serving COMMANDs to a connected radio transceiver or receiver. Type: rigctld --help for extended usage. /home/ham/Hamlib/tests/.libs/rotctl: invalid option -- 'Q' Usage: rotctl [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] [COMMAND...|-] Send COMMANDs to a connected antenna rotator. Type: rotctl --help for extended usage. /home/ham/Hamlib/tests/.libs/rotctld: invalid option -- 'Q' Usage: rotctld [OPTION]... [-m ID] [-r DEVICE] [-s BAUD] Daemon serving COMMANDs to a connected antenna rotator. Type: rotctld --help for extended usage. Commit: 59916293de76d15b4f61023a70900334d60f7d05 https://github.com/Hamlib/Hamlib/commit/59916293de76d15b4f61023a70900334d60f7d05 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-21 (Sun, 21 Sep 2025) Changed paths: M tests/ampctl.c M tests/ampctld.c M tests/rigctl.c M tests/rigctlcom.c M tests/rigctld.c M tests/rigctlsync.c M tests/rigctltcp.c M tests/rigmem.c M tests/rigsmtr.c M tests/rigswr.c M tests/rotctl.c M tests/rotctld.c Log Message: ----------- Make static all usage() and usage_short() functions Commit: 5e3911b3c32fdddc26af855523d169b6c51bd466 https://github.com/Hamlib/Hamlib/commit/5e3911b3c32fdddc26af855523d169b6c51bd466 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-21 (Sun, 21 Sep 2025) Changed paths: M tests/ampctld.c M tests/rotctld.c Log Message: ----------- The ampctld and rotctld do not read COMMANDs from their command line Test case: tests/ampctld -h | head -1 tests/rigctld -h | head -1 tests/rotctld -h | head -1 Expected output: Usage: ampctld [OPTION]... Usage: rigctld [OPTION]... Usage: rotctld [OPTION]... Commit: ca638238cb6724d5cf3e0dda0c353b0b430bc413 https://github.com/Hamlib/Hamlib/commit/ca638238cb6724d5cf3e0dda0c353b0b430bc413 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-22 (Mon, 22 Sep 2025) Changed paths: M tests/rigctl_parse.c Log Message: ----------- Wrap longer commands in the help text Commit: b1a673326b152ae763ac49045b267d2be2898710 https://github.com/Hamlib/Hamlib/commit/b1a673326b152ae763ac49045b267d2be2898710 Author: Daniele Forsi IU5HKX <iu...@gm...> Date: 2025-09-22 (Mon, 22 Sep 2025) Changed paths: M tests/rigctl_parse.c Log Message: ----------- Wrap wide columns with the list of commands Commit: c195d3dd4c66d959119d50a07801836fd6b558da https://github.com/Hamlib/Hamlib/commit/c195d3dd4c66d959119d50a07801836fd6b558da Author: Nate Bargmann <n0...@n0...> Date: 2025-09-22 (Mon, 22 Sep 2025) Changed paths: M tests/ampctl.c M tests/ampctld.c M tests/rigctl.c M tests/rigctl_parse.c M tests/rigctlcom.c M tests/rigctld.c M tests/rigctlsync.c M tests/rigctltcp.c M tests/rigmem.c M tests/rigsmtr.c M tests/rigswr.c M tests/rotctl.c M tests/rotctld.c Log Message: ----------- Merge GitHub PR #1882 Compare: https://github.com/Hamlib/Hamlib/compare/3ea25e6ba072...c195d3dd4c66 To unsubscribe from these emails, change your notification settings at https://github.com/Hamlib/Hamlib/settings/notifications |