You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
! garble
|
|
stderr -count=1 'Usage'
|
|
stderr 'garble \[garble flags\] command'
|
|
! stderr 'usage: go build'
|
|
! stdout .
|
|
|
|
! garble -h
|
|
stderr 'garble \[garble flags\] command'
|
|
! stdout .
|
|
|
|
! garble help
|
|
stderr 'garble \[garble flags\] command'
|
|
! stdout .
|
|
|
|
! garble help foo bar
|
|
stderr 'does not take arguments'
|
|
! stdout .
|
|
|
|
! garble build -h
|
|
stderr 'garble \[garble flags\] command'
|
|
! stderr 'usage: go build'
|
|
! stdout .
|
|
|
|
! garble -badflag
|
|
stderr 'flag provided but not defined'
|
|
stderr 'garble \[garble flags\] command'
|
|
! stdout .
|
|
|
|
! garble badcmd
|
|
stderr 'unknown command'
|
|
|
|
! garble build -badflag
|
|
stderr 'usage: go build' # TODO: is this confusing?
|
|
! stdout .
|
|
|
|
[!windows] ! garble /does/not/exist/compile
|
|
[windows] ! garble C:\does\not\exist\compile
|
|
stderr 'not running "garble \[command\]"'
|
|
|
|
garble version
|
|
stdout 'devel|^v0'
|
|
|
|
! garble version -flag
|
|
stderr 'does not take arguments'
|
|
|
|
! garble version arg
|
|
stderr 'does not take arguments'
|
|
|
|
# We need a dummy module for "garble build -badflag".
|
|
-- go.mod --
|
|
module dummy
|
|
-- dummy.go --
|
|
package dummy
|