aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenkang <kongchen28@gmail.com>2021-04-16 15:52:03 +0800
committerchenkang <kongchen28@gmail.com>2021-04-16 15:52:59 +0800
commite16200ac9f0e8fde836a14cc6951203e8986122a (patch)
treea88e00cf5796a7bcb932046ebefcf00dc094ebf4
parent4fb5fee4120165d43ee6b98f7258cda741d41d45 (diff)
downloadpodman-e16200ac9f0e8fde836a14cc6951203e8986122a.tar.gz
podman-e16200ac9f0e8fde836a14cc6951203e8986122a.tar.bz2
podman-e16200ac9f0e8fde836a14cc6951203e8986122a.zip
add flag autocomplete
Signed-off-by: chenkang <kongchen28@gmail.com>
-rw-r--r--cmd/podman/common/create.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index e574f228e..da391d30d 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -822,6 +822,7 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) {
&cf.PidFile,
pidFileFlagName, "",
"Write the container process ID to the file")
+ _ = cmd.RegisterFlagCompletionFunc(pidFileFlagName, completion.AutocompleteDefault)
_ = createFlags.MarkHidden("signature-policy")
if registry.IsRemote() {