diff --git a/hw1/src/validargs.c b/hw1/src/validargs.c index 6cf49d6..a2700c3 100644 --- a/hw1/src/validargs.c +++ b/hw1/src/validargs.c @@ -78,13 +78,15 @@ int validargs(int argc, char **argv) { return -1; } - global_options = PRETTY_PRINT_OPTION; if (argc == 3) - { + { + global_options = PRETTY_PRINT_OPTION; + global_options += 4; return 0; } else if (argc == 4) { + global_options = PRETTY_PRINT_OPTION; int indent_value = 0; arg = *(++ptr); while (*arg != '\0')