Files
garble/testdata/scripts/help.txt
Daniel Martí f764467e9b all: update the docs a bit
Rework the features section in the README, leaving optional features at
the end of the list. Simplify the caveats list, too; the build cache and
exported field/method bits only need one point each. Overall, the
section was far too wordy for little reason.

Also redo the help text a bit. There's now a line to briefly introduce
the tool, as well as a link to the README with all the details. Finally,
the flags have shorter and more consistent help strings.

While at it, remove two unused global vars as spotted by staticcheck.
2020-09-06 13:32:00 +01:00

31 lines
572 B
Plaintext

! garble
stderr -count=1 'Usage'
stderr 'garble \[flags\] build'
! stderr 'usage: go build'
! stdout .
! garble -h
stderr 'garble \[flags\] build'
! stdout .
! garble help
stderr 'garble \[flags\] build'
! stdout .
! garble build -h
stderr 'garble \[flags\] build'
! stderr 'usage: go build'
! stdout .
! garble -badflag
stderr 'garble \[flags\] build'
! stdout .
! garble badcmd
stderr 'unknown command'
[!windows] ! garble /does/not/exist/compile
[!windows] stderr 'no such file'
[windows] ! garble C:\does\not\exist\compile
[windows] stderr 'file does not exist'