! shfmt -h
! stderr 'flag provided but not defined'
stderr 'usage: shfmt'
stderr 'Utilities' # definitely includes our help text
! stderr 'help requested' # don't duplicate usage output
! stderr '-test\.' # don't show the test binary's usage func

shfmt -version
stdout 'devel|v3'
! stderr .

! shfmt -ln=bash -p
stderr 'cannot coexist'

! shfmt -ln=bad
stderr 'unknown shell language'

! shfmt -tojson file
stderr 'can only be used with stdin'

# Check all the -ln variations.
stdin notbash.sh
! shfmt
stdin notbash.sh
shfmt -ln=posix
stdin notbash.sh
shfmt -p
stdin notbash.sh
! shfmt -ln=mksh
stdin notbash.sh
! shfmt -ln=bash

-- notbash.sh --
let a+
