Remove a bunch of debugging printfs and add verbosity levels
This commit is contained in:
parent
17df0d4adf
commit
41327c92fd
5 changed files with 46 additions and 44 deletions
|
@ -18,6 +18,9 @@
|
|||
#include "writer_png.h"
|
||||
|
||||
|
||||
int verbosity = 0;
|
||||
|
||||
|
||||
static void
|
||||
usage(const char *progname)
|
||||
{
|
||||
|
@ -75,7 +78,7 @@ main(int argc,
|
|||
outfile = optarg;
|
||||
break;
|
||||
case 'v':
|
||||
/* TODO: Verbosity levels. */
|
||||
++verbosity;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -88,6 +91,10 @@ main(int argc,
|
|||
|
||||
infile = argv[optind];
|
||||
|
||||
if (outfile.empty()) {
|
||||
outfile = "charles_out.png";
|
||||
}
|
||||
|
||||
/* Parse YAML files. */
|
||||
YAMLReader reader(scene);
|
||||
for (int i = optind; i < argc; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue