Skip to content

Commit f7782fa

Browse files
committed
feat: make validate command files argument optional
- Change validate command argument from required to optional - Update help text to clarify default behavior (current directory) - Add examples showing no-argument usage patterns
1 parent 5adcb24 commit f7782fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ TOC Customization:
260260
program
261261
.command('validate')
262262
.description('Find broken links in markdown files')
263-
.argument('<files...>', 'Markdown files to validate (supports globs like *.md, **/*.md)')
263+
.argument('[files...]', 'Markdown files to validate (supports globs like *.md, **/*.md, defaults to current directory)')
264264
.option(
265265
'--link-types <types>',
266266
'Comma-separated link types to check: internal,external,anchor,image,reference,claude-import'
@@ -280,6 +280,9 @@ program
280280
'after',
281281
`
282282
Examples:
283+
$ markmv validate # Validate current directory
284+
$ markmv validate . # Validate current directory
285+
$ markmv validate ./ # Validate current directory
283286
$ markmv validate docs/**/*.md --check-external --verbose
284287
$ markmv validate README.md --link-types internal,image --include-context
285288
$ markmv validate **/*.md --group-by type --only-broken

0 commit comments

Comments
 (0)