Skip to content

Commit

Permalink
Merge pull request #30 from containerum/fix-commands
Browse files Browse the repository at this point in the history
Fix "commands" argument processing in "run"
  • Loading branch information
kfeofantov authored Dec 29, 2017
2 parents e55decf + 3ca30de commit 400822f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chlib/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ func ParamsFromArgs(np *jww.Notepad, flags *pflag.FlagSet) (params ConfigurePara
} else {
params.Labels = make(map[string]string)
}
if flags.Changed("command") {
params.Command, err = flags.GetStringSlice("command")
if flags.Changed("commands") {
params.Command, err = flags.GetStringSlice("commands")
chkErr(err)
}
if flags.Changed("env") {
Expand Down

0 comments on commit 400822f

Please sign in to comment.