@@ -508,7 +508,8 @@ func (e *EnvSet) PrintDefaults() {
508
508
// For an integer valued variable x, the default output has the form
509
509
//
510
510
// x int
511
- // description-message-for-x (default: 7)
511
+ //
512
+ // description-message-for-x (default: 7)
512
513
//
513
514
// The description message will appear on a separate line.
514
515
// The parenthetical default is omitted if the default is the zero value for
@@ -522,7 +523,8 @@ func (e *EnvSet) PrintDefaults() {
522
523
// the output will be
523
524
//
524
525
// I directory
525
- // search directory for include files.
526
+ //
527
+ // search directory for include files.
526
528
//
527
529
// To change the destination for variable messages, call [Environment].SetOutput.
528
530
func PrintDefaults () {
@@ -666,7 +668,6 @@ func (e *EnvSet) Uint64(name string, value uint64, description string) *uint64 {
666
668
return p
667
669
}
668
670
669
-
670
671
// Uint64 defines a uint64 environment variable with specified name, default value, and description string.
671
672
// The return value is the address of a uint64 variable that stores the value of the variable.
672
673
func Uint64 (name string , value uint64 , description string ) * uint64 {
@@ -959,20 +960,20 @@ func (e *EnvSet) Init(name string, errorHandling ErrorHandling) {
959
960
// Error messages when parsing command line flags will also print out
960
961
// the description of the environment variables expected.
961
962
func Link (f * flag.FlagSet , e * EnvSet ) {
962
- flagSetUsage := f .Usage
963
- if flagSetUsage == nil {
964
- flagSetUsage = f .PrintDefaults
965
- }
966
- f .Usage = func () {
967
- flagSetUsage ()
968
- e .usage ()
969
- }
963
+ flagSetUsage := f .Usage
964
+ if flagSetUsage == nil {
965
+ flagSetUsage = f .PrintDefaults
966
+ }
967
+ f .Usage = func () {
968
+ flagSetUsage ()
969
+ e .usage ()
970
+ }
970
971
}
971
972
972
973
func init () {
973
- // Take over the default error reporting behavior of the flag package.
974
- // By default the flag package will call the flag.CommandLine.Usage
975
- // function when an error is encountered while parsing command line flags.
974
+ // Take over the default error reporting behavior of the flag package.
975
+ // By default the flag package will call the flag.CommandLine.Usage
976
+ // function when an error is encountered while parsing command line flags.
976
977
977
- Link (flag .CommandLine , Environment )
978
+ Link (flag .CommandLine , Environment )
978
979
}
0 commit comments