Skip to content

Commit

Permalink
cmd/testscript: document -work flag in help and README (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
myitcv authored Jan 21, 2021
1 parent ac050e5 commit 6a414f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/testscript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,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] files...
testscript [-v] [-e VAR[=value]]... [-u] [-work] files...
The testscript command is designed to make it easy to create self-contained
reproductions of command sequences.
Expand Down Expand Up @@ -31,6 +31,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 -work flag prints the temporary work directory path before running each
script, and does not remove that directory when testscript exits.
Examples
========
Expand Down
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] files...
testscript [-v] [-e VAR[=value]]... [-u] [-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 -work flag prints the temporary work directory path before running each
script, and does not remove that directory when testscript exits.
Examples
========
Expand Down

0 comments on commit 6a414f0

Please sign in to comment.