Skip to content

Commit

Permalink
Fix error with arguments in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jvican committed Jun 27, 2019
1 parent 320d474 commit ad35340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/main/scala/sailgun/Cli.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract class Cli(in: InputStream, out: PrintStream, err: PrintStream) {
.arg[String]("<cmd>...")
.optional()
.unbounded()
.action((arg, params) => params.copy(args = arg +: params.args))
.action((arg, params) => params.copy(args = params.args ++ List(arg)))
.text("The command and arguments for the Nailgun server")
OParser
.sequence(
Expand Down

0 comments on commit ad35340

Please sign in to comment.