Skip to content

Commit a22c833

Browse files
Tweak usage buffer sizes based on some of my cli tools (#191)
1 parent 56ba5df commit a22c833

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import (
1919
)
2020

2121
const (
22-
helpBufferSize = 1024 // helpBufferSize is sufficient to hold most command --help text.
23-
versionBufferSize = 256 // versionBufferSize is sufficient to hold all the --version text.
22+
helpBufferSize = 2048 // helpBufferSize is sufficient to hold most command --help text.
23+
versionBufferSize = 256 // versionBufferSize is sufficient to hold a full --version text.
2424
defaultVersion = "dev" // defaultVersion is the version shown in --version when the user has not provided one.
2525
defaultShort = "A placeholder for something cool" // defaultShort is the default value for cli.Short.
2626
)

0 commit comments

Comments
 (0)