env HOME=$WORK/home

! fdroidcl
stderr '^usage: fdroidcl \[-h'

! fdroidcl -h
stderr '^usage: fdroidcl \[-h'
! stderr 'test\.' # don't include flags from testing
! stderr 'command not specified'
! stdout .

fdroidcl version
stdout '^v0\.5'

! fdroidcl -badflag -- somepkg
stderr '-badflag'
stderr '^usage: fdroidcl \[-h'

! fdroidcl search -h
stderr '^usage: fdroidcl search .*regexp'
stderr '^Search available apps.'
stderr '-i.*Filter installed apps'

! fdroidcl install -h
stderr 'When given no arguments'

! fdroidcl

! fdroidcl install -u some.app
stderr 'without arguments'
