From 68988425119255382f94c983796574050006f003 Mon Sep 17 00:00:00 2001 From: Chloe A Date: Mon, 20 Mar 2023 23:44:58 +0500 Subject: [PATCH] fix: Add missing --watch flag when running astro check --help (#6586) Co-authored-by: Bjorn Lu --- .changeset/tender-emus-eat.md | 5 +++++ packages/astro/src/cli/check/index.ts | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/tender-emus-eat.md diff --git a/.changeset/tender-emus-eat.md b/.changeset/tender-emus-eat.md new file mode 100644 index 000000000..bdf084fdb --- /dev/null +++ b/.changeset/tender-emus-eat.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +fix: Add missing --watch flag for astro check when running astro check --help diff --git a/packages/astro/src/cli/check/index.ts b/packages/astro/src/cli/check/index.ts index 83226db1c..10840aed1 100644 --- a/packages/astro/src/cli/check/index.ts +++ b/packages/astro/src/cli/check/index.ts @@ -89,7 +89,10 @@ export async function check( commandName: 'astro check', usage: '[...flags]', tables: { - Flags: [['--help (-h)', 'See all available flags.']], + Flags: [ + ['--watch', 'Watch Astro files for changes and re-run checks.'], + ['--help (-h)', 'See all available flags.'] + ], }, description: `Runs diagnostics against your project and reports errors to the console.`, });