From 0aadf5e500d413041cc21f2b041b7004840e67fd Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sun, 25 Mar 2012 20:35:09 -0400 Subject: [PATCH] fix help whitespace parsing --- main/command/BasicCommands.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/command/BasicCommands.scala b/main/command/BasicCommands.scala index 1d25e88db..77a22db23 100644 --- a/main/command/BasicCommands.scala +++ b/main/command/BasicCommands.scala @@ -28,7 +28,7 @@ object BasicCommands val h = (Help.empty /: s.definedCommands)(_ ++ _.help(s)) val helpCommands = h.detail.keySet val arg = (NotSpaceClass ~ any.*) map { case (ns, s) => (ns +: s).mkString } - val spacedArg = token(Space) ~> token( arg examples helpCommands ).? + val spacedArg = (token(Space) ~> token( arg examples helpCommands )).? applyEffect(spacedArg)(runHelp(s, h)) }