-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add quiet cmd line option to suppress println to console #114
Conversation
Add quiet to Settings object Propagate quite to all places where you have Settings creation Make tests happy
@@ -140,7 +140,7 @@ object Processor { | |||
inputQueue ++= includes.map(id => Input(mkRelativeFileName(id.fileName, inputPath), scope)) | |||
input.parentScope.addIncludedScope(scope) | |||
case n: parser.NoSuccess => | |||
println("Error while parsing %s:\n%s" format (bold(inputPath), n)) | |||
if (!quiet) println("Error while parsing %s:\n%s" format (bold(inputPath), n)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think error messages shouldn't be suppressed; all else seems fine!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Thanks @alexanderzafirov This looks great, except for the one comment about error messages. |
Closes #111
Add quiet to Settings object
Propagate quite to all places where you have Settings creation
Make tests happy