summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-08-04 09:48:41 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-08-04 09:48:43 -0400
commit77d803d4fec4427b39a92994694513609158f8f0 (patch)
tree3c30589d623dfe7e95e73cc387bf6d830783bd27 /cmd/podman/common
parent7eca5571dc9d39590bc0127f15257921dea30c55 (diff)
downloadpodman-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')
-rw-r--r--cmd/podman/common/create.go18
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)
-}