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

Feature: Add --quiet option to tilemaker executable #752

Open
oobayly opened this issue Sep 9, 2024 · 0 comments
Open

Feature: Add --quiet option to tilemaker executable #752

oobayly opened this issue Sep 9, 2024 · 0 comments

Comments

@oobayly
Copy link
Contributor

oobayly commented Sep 9, 2024

When creating #750 I had issues getting the VS code debugger to correctly (probably related to microsoft/vscode-cpptools#1385. Disabling the large amount of STDOUT ouput generated when running tilemaker in debug solved the issue.

I've added an optional --quiet flag to tilemaker that defaults to false. When set to true:

if (options.quiet) {
  // Suppress anything written to std out
  std::cout.setstate(std::ios_base::failbit);
}

I'm not sure that this is the best/correct way to do this, but it works. I'm happy to take any advice if it should be changed.

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

No branches or pull requests

1 participant