Skip to content

Commit c0d52a4

Browse files
committed
Wrap help text to fit 80-column terminal
1 parent 55b6cff commit c0d52a4

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

estimate.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ func execEstimate(args []string) {
178178

179179
fs.Usage = func() {
180180
fmt.Fprintf(os.Stderr, "Usage: %s estimate <go-package-importpath>\n", os.Args[0])
181-
fmt.Fprintf(os.Stderr, "Estimates the work necessary to bring <go-package-importpath> into Debian by printing all currently unpacked repositories\n")
181+
fmt.Fprintf(os.Stderr, "Estimates the work necessary to bring <go-package-importpath> into Debian\n"+
182+
"by printing all currently unpacked repositories.\n")
182183
fmt.Fprintf(os.Stderr, "Example: %s estimate github.com/Debian/dh-make-golang\n", os.Args[0])
183184
}
184185

make.go

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,25 +563,37 @@ func execMake(args []string, usage func()) {
563563
fs.StringVar(&gitRevision,
564564
"git_revision",
565565
"",
566-
"git revision (see gitrevisions(7)) of the specified Go package\nto check out, defaulting to the default behavior of git clone.\nUseful in case you do not want to package e.g. current HEAD.")
566+
"git revision (see gitrevisions(7)) of the specified Go package\n"+
567+
"to check out, defaulting to the default behavior of git clone.\n"+
568+
"Useful in case you do not want to package e.g. current HEAD.")
567569

568570
var allowUnknownHoster bool
569571
fs.BoolVar(&allowUnknownHoster,
570572
"allow_unknown_hoster",
571573
false,
572-
"The pkg-go naming conventions use a canonical identifier for\nthe hostname (see https://go-team.pages.debian.net/packaging.html),\nand the mapping is hardcoded into dh-make-golang.\nIn case you want to package a Go package living on an unknown hoster,\nyou may set this flag to true and double-check that the resulting\npackage name is sane. Contact pkg-go if unsure.")
574+
"The pkg-go naming conventions use a canonical identifier for\n"+
575+
"the hostname (see https://go-team.pages.debian.net/packaging.html),\n"+
576+
"and the mapping is hardcoded into dh-make-golang.\n"+
577+
"In case you want to package a Go package living on an unknown hoster,\n"+
578+
"you may set this flag to true and double-check that the resulting\n"+
579+
"package name is sane. Contact pkg-go if unsure.")
573580

574581
var dep14 bool
575582
fs.BoolVar(&dep14,
576583
"dep14",
577584
true,
578-
"Follow DEP-14 branch naming and use debian/sid (instead of master)\nas the default debian-branch.")
585+
"Follow DEP-14 branch naming and use debian/sid (instead of master)\n"+
586+
"as the default debian-branch.")
579587

580588
var pristineTar bool
581589
fs.BoolVar(&pristineTar,
582590
"pristine-tar",
583591
false,
584-
"Keep using a pristine-tar branch as in the old workflow.\nStrongly discouraged, see \"pristine-tar considered harmful\"\n https://michael.stapelberg.ch/posts/2018-01-28-pristine-tar/\nand the \"Drop pristine-tar branches\" section at\nhttps://go-team.pages.debian.net/workflow-changes.html")
592+
"Keep using a pristine-tar branch as in the old workflow.\n"+
593+
"Strongly discouraged, see \"pristine-tar considered harmful\"\n"+
594+
"https://michael.stapelberg.ch/posts/2018-01-28-pristine-tar/\n"+
595+
"and the \"Drop pristine-tar branches\" section at\n"+
596+
"https://go-team.pages.debian.net/workflow-changes.html")
585597

586598
var pkgTypeString string
587599
fs.StringVar(&pkgTypeString,
@@ -596,7 +608,9 @@ func execMake(args []string, usage func()) {
596608
fs.StringVar(&wrapAndSort,
597609
"wrap-and-sort",
598610
"a",
599-
"Set how the various multi-line fields in debian/control are formatted.\nValid values are \"a\", \"at\" and \"ast\", see wrap-and-sort(1) man page\nfor more information.")
611+
"Set how the various multi-line fields in debian/control are formatted.\n"+
612+
"Valid values are \"a\", \"at\" and \"ast\", see wrap-and-sort(1) man page\n"+
613+
"for more information.")
600614

601615
err := fs.Parse(args)
602616
if err != nil {

0 commit comments

Comments
 (0)