mirror of
https://github.com/docker/cli.git
synced 2026-09-01 02:24:23 -05:00
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