mirror of https://github.com/sbt/sbt.git
fix sample method interpretation of completions argument
This commit is contained in:
parent
94b4a3784a
commit
ec8f9884e0
|
|
@ -284,7 +284,7 @@ trait ParserMain
|
|||
}
|
||||
|
||||
def sample(str: String, parser: Parser[_], completions: Boolean = false): Unit =
|
||||
if(completions) sampleParse(str, parser) else sampleCompletions(str, parser)
|
||||
if(completions) sampleCompletions(str, parser) else sampleParse(str, parser)
|
||||
def sampleParse(str: String, parser: Parser[_]): Unit =
|
||||
parse(str, parser) match {
|
||||
case Left(msg) => println(msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue