turborepo
0e98f062 - feat: specific error message for potential debugging flags (#10513)

Commit
206 days ago
feat: specific error message for potential debugging flags (#10513) ### Description When a user tries to use `--debug` or `--verbose` as flags, we can make a pretty strong bet that they're trying to get some debug logging from us. In this case, we can supply better direction to the developer. ### Testing Instructions Before: ``` ▲ 👟 turbo on shew/8d2a6 dt anything --debug × The --debug flag is not supported. Please use --verbosity instead. │ if you are trying to pass `--debug` as a value, use `-- --debug`. ``` AFTER: ``` ▲ 👟 turbo on shew/8d2a6 turbo anything --debug ERROR unexpected argument '--debug' found tip: to pass '--debug' as a value, use '-- --debug' Usage: turbo <--cache-dir <CACHE_DIR>|--concurrency <CONCURRENCY>|--continue[=<CONTINUE>]|--single-package|--framework-inference [<BOOL>]|--global-deps <GLOBAL_DEPS>|--env-mode [<ENV_MODE>]|--filter <FILTER>|--affected|--output-logs <OUTPUT_LOGS>|--log-order <LOG_ORDER>|--only|--pkg-inference-root <PKG_INFERENCE_ROOT>|--log-prefix <LOG_PREFIX>|TASKS|PASS_THROUGH_ARGS> For more information, try '--help'. ```
Author
Parents
Loading