Skip to content

Commit ebd9130

Browse files
committed
Disable the help for the main command
1 parent 449b479 commit ebd9130

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .changeset/blue-points-exist.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@react-docgen/cli': patch
3+
---
4+
5+
Display the correct help info when running `react-docgen --help`

Diff for: packages/react-docgen-cli/src/cli.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { program } from 'commander';
33

44
program
55
.name('react-docgen')
6+
.helpOption(false)
67
.executableDir('./commands/')
78
.command('parse', 'Extract meta information from React components.', {
89
isDefault: true,

0 commit comments

Comments
 (0)