diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-17 12:44:42 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-17 12:44:42 -0400 |
commit | d50ff4f512856907982e1ebb92d60fc7980f730e (patch) | |
tree | e6d08dadf1e44ca84f27a19e9228c6717a6e0509 /cmd | |
parent | f70c9cd78bd377ddc01acc67f00af38325f40edd (diff) | |
download | podman-d50ff4f512856907982e1ebb92d60fc7980f730e.tar.gz podman-d50ff4f512856907982e1ebb92d60fc7980f730e.tar.bz2 podman-d50ff4f512856907982e1ebb92d60fc7980f730e.zip |
Add podman secret create -d as alias for --driver for Docker compatibility
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/secrets/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/secrets/create.go b/cmd/podman/secrets/create.go index 8ecfecf69..01775f563 100644 --- a/cmd/podman/secrets/create.go +++ b/cmd/podman/secrets/create.go @@ -46,7 +46,7 @@ func init() { cfg := registry.PodmanConfig() - flags.StringVar(&createOpts.Driver, driverFlagName, cfg.Secrets.Driver, "Specify secret driver") + flags.StringVarP(&createOpts.Driver, driverFlagName, "d", cfg.Secrets.Driver, "Specify secret driver") flags.StringToStringVar(&createOpts.DriverOpts, optsFlagName, cfg.Secrets.Opts, "Specify driver specific options") _ = createCmd.RegisterFlagCompletionFunc(driverFlagName, completion.AutocompleteNone) _ = createCmd.RegisterFlagCompletionFunc(optsFlagName, completion.AutocompleteNone) |