Skip to content

Commit 7f4b4a0

Browse files
committed
chore: hide help and --version
Hides help command and version There was duplicity between help and --help And versions and --version help command still shows in completion Signed-off-by: Pau Capdevila <[email protected]>
1 parent c8119c6 commit 7f4b4a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmd/hhfab/main.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ func Run(ctx context.Context) error {
416416
Suggest: true,
417417
UseShortOptionHandling: true,
418418
EnableShellCompletion: true,
419+
// HideHelp: true, // Uncomment to generate doc
420+
HideHelpCommand: true,
421+
HideVersion: true,
419422
Commands: []*cli.Command{
420423
{
421424
Name: "init",
@@ -1278,7 +1281,7 @@ func Run(ctx context.Context) error {
12781281
&cli.StringFlag{
12791282
Name: "output",
12801283
Usage: "output file path for documentation",
1281-
Value: "result/hhfab-doc.md",
1284+
Value: "docs/hhfab.md",
12821285
},
12831286
},
12841287
Before: before(false),

0 commit comments

Comments
 (0)