forked from vercel/turbo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bad_flag.t
26 lines (16 loc) · 1.17 KB
/
bad_flag.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Setup
$ . ${TESTDIR}/../../helpers/setup.sh
Bad flag should print misuse text
$ ${TURBO} --bad-flag
ERROR unexpected argument '--bad-flag' found
note: to pass '--bad-flag' as a value, use '-- --bad-flag'
Usage: turbo [OPTIONS] [COMMAND]
For more information, try '--help'.
[1]
Bad flag with an implied run command should display run flags
$ ${TURBO} build --bad-flag
ERROR unexpected argument '--bad-flag' found
note: to pass '--bad-flag' as a value, use '-- --bad-flag'
Usage: turbo <--cache-dir <CACHE_DIR>|--cache-workers <CACHE_WORKERS>|--concurrency <CONCURRENCY>|--continue|--dry-run [<DRY_RUN>]|--single-package|--filter <FILTER>|--force [<FORCE>]|--global-deps <GLOBAL_DEPS>|--graph [<GRAPH>]|--experimental-env-mode [<ENV_MODE>]|--ignore <IGNORE>|--include-dependencies|--no-cache|--no-daemon|--no-deps|--output-logs <OUTPUT_LOGS>|--only|--parallel|--pkg-inference-root <PKG_INFERENCE_ROOT>|--profile <PROFILE>|--remote-only [<REMOTE_ONLY>]|--scope <SCOPE>|--since <SINCE>|--summarize [<SUMMARIZE>]|--log-prefix <LOG_PREFIX>|TASKS|PASS_THROUGH_ARGS|--experimental-space-id <EXPERIMENTAL_SPACE_ID>>
For more information, try '--help'.
[1]