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/752 Add optional --quiet flag to tilemaker #754

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

oobayly
Copy link
Contributor

@oobayly oobayly commented Sep 9, 2024

See #752

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.

@systemed systemed merged commit 6ecacf4 into systemed:master Oct 13, 2024
@systemed
Copy link
Owner

Thanks!

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.

2 participants