cginternals / glraw

C++ library that converts Qt supported images to OpenGL raw format.
MIT License
63 stars 7 forks source link

Add quiet option to avoid any output for the cmd app. #1

Closed cgcostume closed 10 years ago

cgcostume commented 11 years ago

Use --quiet and -q to suppress any stdio output during execution.

mjendruk commented 11 years ago

Does it suppress warnings like wrong arguments, too?

cgcostume commented 11 years ago

hmm, i don't know. we should wait for comments of someone using command line tools more often :smile: @scheibel @sbusch42

scheibel commented 11 years ago

I didn't use this tool yet, but I would prefer using -q in a tool chain because some command line tools consider each output of a subtask as error (e.g. cron).

sbusch42 commented 11 years ago

In those cases, you can always pipe the output to /dev/null as often seen e.g. in cron jobs. But a --quiet/-q option would of course make this easier.

mjendruk commented 11 years ago

I did it like this: qDebugs will be discarded and everything else (qWarning, qFatal) will be printed. Is every one okay with this?