summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.changeset/tender-emus-eat.md5
-rw-r--r--packages/astro/src/cli/check/index.ts5
2 files changed, 9 insertions, 1 deletions
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.`,
});