diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-04 09:48:41 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-08-04 09:48:43 -0400 |
commit | 77d803d4fec4427b39a92994694513609158f8f0 (patch) | |
tree | 3c30589d623dfe7e95e73cc387bf6d830783bd27 /cmd/podman/common/create.go | |
parent | 7eca5571dc9d39590bc0127f15257921dea30c55 (diff) | |
download | podman-77d803d4fec4427b39a92994694513609158f8f0.tar.gz podman-77d803d4fec4427b39a92994694513609158f8f0.tar.bz2 podman-77d803d4fec4427b39a92994694513609158f8f0.zip |
Remove duplicated code
We have duplicated alias handling, removing.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r-- | cmd/podman/common/create.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go index e96b6a8d6..403a1065b 100644 --- a/cmd/podman/common/create.go +++ b/cmd/podman/common/create.go @@ -518,21 +518,3 @@ func GetCreateFlags(cf *ContainerCLIOpts) *pflag.FlagSet { ) return &createFlags } - -func AliasFlags(_ *pflag.FlagSet, name string) pflag.NormalizedName { - switch name { - case "healthcheck-command": - name = "health-cmd" - case "healthcheck-interval": - name = "health-interval" - case "healthcheck-retries": - name = "health-retries" - case "healthcheck-start-period": - name = "health-start-period" - case "healthcheck-timeout": - name = "health-timeout" - case "net": - name = "network" - } - return pflag.NormalizedName(name) -} |