From c480b87243651fe8e402c28ba5d715196a86170e Mon Sep 17 00:00:00 2001 From: Tom Fleet Date: Tue, 18 Nov 2025 07:03:37 +0000 Subject: [PATCH] Tweak usage buffer sizes based on some of my cli tools --- command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.go b/command.go index 06e9c1b..54be8a4 100644 --- a/command.go +++ b/command.go @@ -19,8 +19,8 @@ import ( ) const ( - helpBufferSize = 1024 // helpBufferSize is sufficient to hold most command --help text. - versionBufferSize = 256 // versionBufferSize is sufficient to hold all the --version text. + helpBufferSize = 2048 // helpBufferSize is sufficient to hold most command --help text. + versionBufferSize = 256 // versionBufferSize is sufficient to hold a full --version text. defaultVersion = "dev" // defaultVersion is the version shown in --version when the user has not provided one. defaultShort = "A placeholder for something cool" // defaultShort is the default value for cli.Short. )