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"}