summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chloe A <solely@riseup.net> 2023-03-20 23:44:58 +0500
committerGravatar GitHub <noreply@github.com> 2023-03-20 15:44:58 -0300
commit68988425119255382f94c983796574050006f003 (patch)
tree437ed9b2535fdb6f2d4a73bc8fd73da4f1245ac5
parent97f876abba31438ae4cc41fdbae276fbbc78e98b (diff)
downloadastro-68988425119255382f94c983796574050006f003.tar.gz
astro-68988425119255382f94c983796574050006f003.tar.zst
astro-68988425119255382f94c983796574050006f003.zip
fix: Add missing --watch flag when running astro check --help (#6586)
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
-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.`,
});