Merge pull request #5759 from rhatdan/fix

run/create were processing options after the image name
This commit is contained in:
OpenShift Merge Robot 2020-04-08 15:58:48 +02:00 committed by GitHub
commit 291ad7fbd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ func init() {
})
//common.GetCreateFlags(createCommand)
flags := createCommand.Flags()
flags.SetInterspersed(false)
flags.AddFlagSet(common.GetCreateFlags(&cliVals))
flags.AddFlagSet(common.GetNetFlags())
flags.SetNormalizeFunc(common.AliasFlags)

View File

@ -46,6 +46,7 @@ func init() {
Command: runCommand,
})
flags := runCommand.Flags()
flags.SetInterspersed(false)
flags.AddFlagSet(common.GetCreateFlags(&cliVals))
flags.AddFlagSet(common.GetNetFlags())
flags.SetNormalizeFunc(common.AliasFlags)