tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

Feature: Add --quiet option to tilemaker executable

Open oobayly opened this issue 1 year ago • 0 comments

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.

oobayly avatar Sep 09 '24 13:09 oobayly