From 6b5c765938c7b38744a557eaeb602bfd247eae2b Mon Sep 17 00:00:00 2001 From: aewshyae <1528058+aewshyae@users.noreply.github.com> Date: Sat, 29 Jul 2023 16:38:12 +0900 Subject: [PATCH] docs(en,ja): commands: add --max-errors option --- content/en/docs/1.get-started/4.commands.md | 11 +++++++++++ content/ja/docs/1.get-started/4.commands.md | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/content/en/docs/1.get-started/4.commands.md b/content/en/docs/1.get-started/4.commands.md index 964a3dd979..e1331febbc 100644 --- a/content/en/docs/1.get-started/4.commands.md +++ b/content/en/docs/1.get-started/4.commands.md @@ -166,6 +166,17 @@ npm run generate --fail-on-error ``` :: +When called the `--max-errors` argument with a number the command returns after the number of error occurred. + +::code-group +```bash [Yarn] +yarn generate --max-error=10 +``` +```bash [NPM] +npm run generate --max-error=10 +``` +:: + ## What's next? ::alert{type="next"} diff --git a/content/ja/docs/1.get-started/4.commands.md b/content/ja/docs/1.get-started/4.commands.md index 2193e03a26..c983860b01 100644 --- a/content/ja/docs/1.get-started/4.commands.md +++ b/content/ja/docs/1.get-started/4.commands.md @@ -167,6 +167,17 @@ npm run generate --fail-on-error ``` :: +`--max-errors`引数 を指定すると、エラーの発生件数により途中で終了させることができます。 + +::code-group +```bash [Yarn] +yarn generate --max-error=10 +``` +```bash [NPM] +npm run generate --max-error=10 +``` +:: + ## この次は? ::alert{type="next"}