From bf2839c0b5d369ae70860e296bd56a9820a6dfc2 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Thu, 5 Jan 2023 16:27:43 +0000 Subject: [PATCH] cmd/testscript: mention -continue flag in usage The flag was added in #189 but not documented in the usage message. --- cmd/testscript/help.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/testscript/help.go b/cmd/testscript/help.go index d4808b02..0b3975cd 100644 --- a/cmd/testscript/help.go +++ b/cmd/testscript/help.go @@ -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. @@ -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.