Add output of integer argument

Signed-off-by: Cao Weiwei <cao.weiwei30@zte.com.cn>
Upstream-commit: 627839072c7f52a9fa4fe4e26f3e43a74481f998
Component: engine
This commit is contained in:
Cao Weiwei
2016-07-16 20:20:00 +08:00
parent 7d2ad0787e
commit 9a28086e41

View File

@ -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())
}