From a7a691809a3125cce691c7934a98a2511b9cb6db Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Wed, 13 Feb 2019 19:22:29 -0500 Subject: Add examples for Cobra Signed-off-by: TomSweeneyRedHat First pass of entries for the Examples listed in the Cobra Help. Will add others in following PR's. --- cmd/podman/create.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/podman/create.go') diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 1a7f419c0..f514afe30 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -49,7 +49,9 @@ var ( createCommand.GlobalFlags = MainGlobalOpts return createCmd(&createCommand) }, - Example: "IMAGE [COMMAND [ARG...]]", + Example: `podman create alpine ls + podman create --annotation HELLO=WORLD alpine ls + podman create -t -i --name myctr alpine ls`, } defaultEnvVariables = map[string]string{ -- cgit v1.2.3-54-g00ecf