From f270e25ea4d208527319b0b39f01c56389f02cf4 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Wed, 4 Oct 2023 16:07:26 -0700 Subject: [PATCH] Use `--with-help`. --- tests/run-all | 7 +------ tests/run-one | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/run-all b/tests/run-all index a1c0778..c9eb8c0 100755 --- a/tests/run-all +++ b/tests/run-all @@ -10,17 +10,12 @@ # Argument parsing # -define-usage $' +define-usage --with-help $' ${name} [ ...] [--] Runs all the tests. - - ${help} ' -# Want help? -opt-action --call='{ usage; exit }' help/h - process-args "$@" || usage --short diff --git a/tests/run-one b/tests/run-one index 83564e4..aed86fd 100755 --- a/tests/run-one +++ b/tests/run-one @@ -10,7 +10,7 @@ # Argument parsing # -define-usage $' +define-usagem --with-help $' ${name} [ ...] [--] Runs a single named test. The name of the test is fundamentally the partial @@ -28,13 +28,8 @@ define-usage $' --update Update the expected output to match the actual output. - - ${help} ' -# Want help? -opt-action --call='{ usage; exit }' help/h - # Update the expected output? opt-toggle --var=doUpdate update