Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Stan
New issue 90 by
jeffrey....@gmail.com: Message "INVALID COMMAND-LINE
ARGUMENT" printed for parse errors
http://code.google.com/p/stan/issues/detail?id=90
Using commit e1a9380a9524fb6a8a12a85250615acc132624b3.
The command line stanc returns the error for invalid-command line argument,
even when it is a parser failure. The attached model produces the following
output.
$ bin/stanc foo.stan
Model name=foo_model
Input file=foo.stan
Output file=foo_model.cpp
INVALID COMMAND-LINE ARGUMENT
EXPECTATION FAILURE LOCATION: file=foo.stan; line=2, column=10
vector y;
^-- here
DIAGNOSTIC(S) FROM PARSER:
Parser expecting: "["
echo $?
253