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:
@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user