Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/testscript: mention -continue flag in usage #191

Merged
merged 1 commit into from
Jan 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/testscript/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The testscript command runs github.com/rogpeppe/go-internal/testscript scripts
in a fresh temporary work directory tree.

Usage:
testscript [-v] [-e VAR[=value]]... [-u] [-work] files...
testscript [-v] [-e VAR[=value]]... [-u] [-continue] [-work] files...

The testscript command is designed to make it easy to create self-contained
reproductions of command sequences.
Expand Down Expand Up @@ -42,6 +42,9 @@ succeed and the testscript file will be updated to reflect the actual content.
As such, this is the cmd/testcript equivalent of
testscript.Params.UpdateScripts.

The -continue flag specifies that if an error occurs, the script will continue running.
All errors will be printed and the exit status will be false.

The -work flag prints the temporary work directory path before running each
script, and does not remove that directory when testscript exits.

Expand Down