mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
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.
31 lines
572 B
Plaintext
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'
|