unix: Implement -O option to turn off __debug__ flag.

This commit is contained in:
Damien George 2014-05-12 23:14:52 +01:00
parent 915197a8f9
commit cc97446ca5
1 changed files with 3 additions and 0 deletions

View File

@ -335,6 +335,9 @@ int main(int argc, char **argv) {
a += 1;
} else if (strcmp(argv[a], "-v") == 0) {
mp_verbose_flag++;
} else if (strcmp(argv[a], "-O") == 0) {
// optimisation; sets __debug__ to False
mp_set_debug(false);
} else {
return usage(argv);
}