| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | . "$(dirname "$0")/testlib.sh" |
| 4 | |
| 5 | begin_test "usage: no command specified" |
| 6 | ( |
| 7 | set -e |
| 8 | |
| 9 | git lfs | grep 'git lfs <command> \[<args>\]' |
| 10 | git lfs -h | grep 'git lfs <command> \[<args>\]' |
| 11 | git lfs help | grep 'git lfs <command> \[<args>\]' |
| 12 | # Note that "git lfs --help" is handled by Git, not Git LFS. |
| 13 | git lfs --foo -h | grep 'git lfs <command> \[<args>\]' |
| 14 | git lfs --foo --help | grep 'git lfs <command> \[<args>\]' |
| 15 | |
| 16 | git-lfs | grep 'git lfs <command> \[<args>\]' |
| 17 | git-lfs -h | grep 'git lfs <command> \[<args>\]' |
| 18 | git-lfs help | grep 'git lfs <command> \[<args>\]' |
| 19 | git-lfs --help | grep 'git lfs <command> \[<args>\]' |
| 20 | git-lfs --foo -h | grep 'git lfs <command> \[<args>\]' |
| 21 | git-lfs --foo --help | grep 'git lfs <command> \[<args>\]' |
| 22 | ) |
| 23 | end_test |