Skip to content
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

Merged
merged 2 commits into from
Nov 6, 2016

Conversation

z4f1r0v
Copy link
Contributor

@z4f1r0v z4f1r0v commented Nov 5, 2016

Closes #111
Add quiet to Settings object
Propagate quite to all places where you have Settings creation
Make tests happy

Add quiet to Settings object
Propagate quite to all places where you have Settings creation
Make tests happy
@z4f1r0v
Copy link
Contributor Author

z4f1r0v commented Nov 5, 2016

Hi @hrj. As requested, here is a second attempt at #111
Let me know if this satisfies the requirements!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 67.049% when pulling 8939d2c on alexanderzafirov:i111-quiet into e3b1d40 on hrj:master.

@@ -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))
Copy link
Owner

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!

Copy link
Contributor Author

@z4f1r0v z4f1r0v Nov 6, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@hrj
Copy link
Owner

hrj commented Nov 6, 2016

Thanks @alexanderzafirov

This looks great, except for the one comment about error messages.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.02%) to 66.953% when pulling bcb17cf on alexanderzafirov:i111-quiet into e3b1d40 on hrj:master.

@hrj hrj merged commit 15dd222 into hrj:master Nov 6, 2016
@z4f1r0v z4f1r0v deleted the i111-quiet branch May 12, 2020 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants