I have an assignment where My program is to be able to take one optional command line argument, the -d flag. And if this flag is entered, it is to change my global variable, bool debugMode from 0 to 1. I was told it would be similar to this :
int main (int argc, char** argv)
But I don't know how to properly implement it so that when it is ran with -d, it changes the bool from false to true.
My global variable is bool debugMode = 0
if that is worth mention.