Skip to content

Commit

Permalink
Use --with-help.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed Oct 4, 2023
1 parent 4c45ca6 commit f270e25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions tests/run-all
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@
# Argument parsing
#

define-usage $'
define-usage --with-help $'
${name} [<opt> ...] [--]
Runs all the tests.
${help}
'

# Want help?
opt-action --call='{ usage; exit }' help/h

process-args "$@" || usage --short


Expand Down
7 changes: 1 addition & 6 deletions tests/run-one
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Argument parsing
#

define-usage $'
define-usagem --with-help $'
${name} [<opt> ...] [--] <test-name>
Runs a single named test. The name of the test is fundamentally the partial
Expand All @@ -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

Expand Down

0 comments on commit f270e25

Please sign in to comment.