diff --git a/cli/src/main/scala/sailgun/Cli.scala b/cli/src/main/scala/sailgun/Cli.scala index 88427ff..348217b 100644 --- a/cli/src/main/scala/sailgun/Cli.scala +++ b/cli/src/main/scala/sailgun/Cli.scala @@ -54,7 +54,7 @@ abstract class Cli(in: InputStream, out: PrintStream, err: PrintStream) { .arg[String]("...") .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(