From b873c5f2394fed0750c35a239d34ce531d3efcdf Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 5 Jul 2026 20:48:06 +0200 Subject: feat: compact --help, move reference to man page Trim show_help to a usage synopsis, the options list, the runtime paths, and a 'man mkhint' pointer. The usage examples, variable-order note, and exit-code table now live in the man page. Add T73 asserting --help exits 0 and points at the man page. Co-Authored-By: Claude Opus 4.8 --- tests/mkhint_test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tests/mkhint_test.sh') diff --git a/tests/mkhint_test.sh b/tests/mkhint_test.sh index 630c140..ff8bffc 100755 --- a/tests/mkhint_test.sh +++ b/tests/mkhint_test.sh @@ -1402,6 +1402,17 @@ run_mkhint -C curl < <(printf 'Y\nY\n') assert_contains "override tree → update" "$SLACKREPO_LOG" '^update curl$' rm -f "$MOCK_BASE/config" +# ── T73: --help compact, exits 0, points at man page ───────────────────────── +echo "" +echo "T73: --help exits 0 and points at 'man mkhint'" +set +e +out=$(run_mkhint --help 2>&1); code=$? +set -e +assert_exit_code "--help exits 0" 0 "$code" +echo "$out" | grep -q 'man mkhint' \ + && { echo " PASS: --help points at man page"; (( PASS++ )); } \ + || { echo " FAIL: --help missing man pointer: $out"; (( FAIL++ )); ERRORS+=("T73 pointer"); } + # ─── SUMMARY ────────────────────────────────────────────────────────────────── teardown -- cgit v1.2.3