If I want my program to be able to run in debug mode, is it a good idea to make it accept a flag such as
-D=DEBUG when I run the program? I currently have a
DEBUG variable in a
.h file but that I can't change after I compile.
#define DEBUG false
I'd like to be able to run my program both in debug mode and "stable" mode. Is getops a good option for doing this since I already use getops for accepting the args
./a.out --help and
./a.out --version ?