summaryrefslogtreecommitdiff
path: root/cmd/podman/common.go
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@suse.com>2018-08-30 08:35:47 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-30 15:45:13 +0000
commit6751b2c3504096286977490d2eb70047f054e207 (patch)
tree864309d70710e90d2fb59d601aeb4911efe22ec8 /cmd/podman/common.go
parent65c31d49f967c9b1da0984897be08f6238bc7705 (diff)
downloadpodman-6751b2c3504096286977490d2eb70047f054e207.tar.gz
podman-6751b2c3504096286977490d2eb70047f054e207.tar.bz2
podman-6751b2c3504096286977490d2eb70047f054e207.zip
run/create: reserve `-h` flag for hostname
Move the `-h` short flag from `--help` to `--hostname` for podman-run, podman-create and podman-pod-create to be compatible with Docker. Fixes: #1367 Signed-off-by: Valentin Rothberg <vrothberg@suse.com> Closes: #1373 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/common.go')
-rw-r--r--cmd/podman/common.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/podman/common.go b/cmd/podman/common.go
index 797e74c98..4ddfd5e0a 100644
--- a/cmd/podman/common.go
+++ b/cmd/podman/common.go
@@ -216,8 +216,12 @@ var createFlags = []cli.Flag{
Name: "group-add",
Usage: "Add additional groups to join (default [])",
},
+ cli.BoolFlag{
+ Name: "help",
+ Hidden: true,
+ },
cli.StringFlag{
- Name: "hostname",
+ Name: "hostname, h",
Usage: "Set container hostname",
},
cli.StringFlag{