Skip to content

Commit c52a017

Browse files
authored
Flip silent to verbose in update-internal-links script (#50522)
1 parent 38ceff4 commit c52a017

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/links/scripts/update-internal-links.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import walkFiles from '#src/workflows/walk-files.js'
2222

2323
program
2424
.description('Update internal links in content files')
25-
.option('--silent', 'The opposite of verbose')
25+
.option('--verbose', 'Enable additional logging')
2626
.option('--debug', "Don't hide any errors")
2727
.option('--dry-run', "Don't actually write changes to disk")
2828
.option('--dont-set-autotitle', "Do NOT transform the link text to 'AUTOTITLE' (if applicable)")
@@ -77,7 +77,7 @@ async function main(files, opts) {
7777
throw new Error(`No files found in ${files}`)
7878
}
7979

80-
const verbose = !opts.silent
80+
const { verbose } = opts
8181

8282
if (verbose) {
8383
console.log(chalk.bold(`Updating internal links in ${actualFiles.length} found files...`))

0 commit comments

Comments
 (0)