()
| 275 | // ===== Dispatch ===== |
| 276 | |
| 277 | function usage() { |
| 278 | console.log(`Usage: |
| 279 | hyperscript <file._hs> Run a hyperscript file |
| 280 | hyperscript --validate [paths...] Validate hyperscript in files |
| 281 | --ext .njk,.erb,... Additional file extensions to scan |
| 282 | --attr foo,bar,... Additional HTML attributes to check |
| 283 | --quiet Only show error count, not details`); |
| 284 | } |
| 285 | |
| 286 | if (flags.has('--validate')) { |
| 287 | validate(); |