Skip to content

Commit

Permalink
Merge pull request moby#24717 from icaoweiwei/patch_2016-07-16_1
Browse files Browse the repository at this point in the history
Add output of integer argument
  • Loading branch information
crosbymichael authored Aug 12, 2016
2 parents 5dbdc32 + 6278390 commit 2c50035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mflag/example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func main() {
fmt.Printf("s/#hidden/-string: %s\n", str)
fmt.Printf("b: %t\n", b)
fmt.Printf("-bool: %t\n", b2)
fmt.Printf("-integer/-number: %d\n", i)
fmt.Printf("s/#hidden/-string(via lookup): %s\n", flag.Lookup("s").Value.String())
fmt.Printf("ARGS: %v\n", flag.Args())
}
Expand Down

0 comments on commit 2c50035

Please sign in to comment.