Skip to content

Commit a774b93

Browse files
committed
Document the --offline flag
1 parent 6c7ce25 commit a774b93

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/flags.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ const flags = [
383383
{
384384
name: 'offline',
385385
boolean: true,
386-
sections: null
386+
color: chalk.cyan,
387+
sections: ['regular'],
388+
description: ['Prevent making network calls.']
387389
},
388390
gitHubAuthFlag,
389391
{

test/snapshots/help/default.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ You can customize the review command with the following flags:
9191
--no-details
9292
Hide the details from error reports for a more compact view.
9393

94+
--offline
95+
Prevent making network calls.
96+
9497
--ignore-dirs <dir1,dir2,...>
9598
Ignore the reports of all rules for the specified directories.
9699

0 commit comments

Comments
 (0)