cmd/create: Shuffle some code around
https://github.com/containers/toolbox/pull/667
This commit is contained in:
parent
3994be4c9c
commit
26ea367ee8
1 changed files with 3 additions and 2 deletions
|
@ -100,12 +100,13 @@ func create(cmd *cobra.Command, args []string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
var container string
|
||||
var containerArg string
|
||||
if cmd.Flag("image").Changed && cmd.Flag("release").Changed {
|
||||
return errors.New("options --image and --release cannot be used together")
|
||||
}
|
||||
|
||||
var container string
|
||||
var containerArg string
|
||||
|
||||
if len(args) != 0 {
|
||||
container = args[0]
|
||||
containerArg = "CONTAINER"
|
||||
|
|
Loading…
Reference in a new issue