File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ The testscript command runs github.com/rogpeppe/go-internal/testscript scripts
33in a fresh temporary work directory tree.
44
55Usage:
6- testscript [-v] [-e VAR[=value]]... [-u] files...
6+ testscript [-v] [-e VAR[=value]]... [-u] [-work] files...
77
88The testscript command is designed to make it easy to create self-contained
99reproductions of command sequences.
@@ -31,6 +31,9 @@ succeed and the testscript file will be updated to reflect the actual content.
3131As such, this is the cmd/testcript equivalent of
3232testscript.Params.UpdateScripts.
3333
34+ The -work flag prints the temporary work directory path before running each
35+ script, and does not remove that directory when testscript exits.
36+
3437Examples
3538========
3639
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ The testscript command runs github.com/rogpeppe/go-internal/testscript scripts
1414in a fresh temporary work directory tree.
1515
1616Usage:
17- testscript [-v] [-e VAR[=value]]... [-u] files...
17+ testscript [-v] [-e VAR[=value]]... [-u] [-work] files...
1818
1919The testscript command is designed to make it easy to create self-contained
2020reproductions of command sequences.
@@ -42,6 +42,9 @@ succeed and the testscript file will be updated to reflect the actual content.
4242As such, this is the cmd/testcript equivalent of
4343testscript.Params.UpdateScripts.
4444
45+ The -work flag prints the temporary work directory path before running each
46+ script, and does not remove that directory when testscript exits.
47+
4548Examples
4649========
4750
You can’t perform that action at this time.
0 commit comments