65 |
else if (strcmp(argv[i], "--no-instrument") == 0) { |
else if (strcmp(argv[i], "--no-instrument") == 0) { |
66 |
i++; |
i++; |
67 |
if (i == argc) { |
if (i == argc) { |
68 |
fatal("--no-instrument: option requires an argument"); |
fatal_command_line("--no-instrument: option requires an argument"); |
69 |
} |
} |
70 |
no_instrument[num_no_instrument] = argv[i]; |
no_instrument[num_no_instrument] = argv[i]; |
71 |
num_no_instrument++; |
num_no_instrument++; |
77 |
else if (strcmp(argv[i], "--exclude") == 0) { |
else if (strcmp(argv[i], "--exclude") == 0) { |
78 |
i++; |
i++; |
79 |
if (i == argc) { |
if (i == argc) { |
80 |
fatal("--exclude: option requires an argument"); |
fatal_command_line("--exclude: option requires an argument"); |
81 |
} |
} |
82 |
exclude[num_exclude] = argv[i]; |
exclude[num_exclude] = argv[i]; |
83 |
num_exclude++; |
num_exclude++; |
89 |
else if (strcmp(argv[i], "--encoding") == 0) { |
else if (strcmp(argv[i], "--encoding") == 0) { |
90 |
i++; |
i++; |
91 |
if (i == argc) { |
if (i == argc) { |
92 |
fatal("--encoding: option requires an argument"); |
fatal_command_line("--encoding: option requires an argument"); |
93 |
} |
} |
94 |
jscoverage_encoding = argv[i]; |
jscoverage_encoding = argv[i]; |
95 |
} |
} |
97 |
jscoverage_encoding = argv[i] + 11; |
jscoverage_encoding = argv[i] + 11; |
98 |
} |
} |
99 |
else if (strncmp(argv[i], "-", 1) == 0) { |
else if (strncmp(argv[i], "-", 1) == 0) { |
100 |
fatal("unrecognized option `%s'", argv[i]); |
fatal_command_line("unrecognized option `%s'", argv[i]); |
101 |
} |
} |
102 |
else if (source == NULL) { |
else if (source == NULL) { |
103 |
source = argv[i]; |
source = argv[i]; |
106 |
destination = argv[i]; |
destination = argv[i]; |
107 |
} |
} |
108 |
else { |
else { |
109 |
fatal("too many arguments"); |
fatal_command_line("too many arguments"); |
110 |
} |
} |
111 |
} |
} |
112 |
|
|
113 |
if (source == NULL || destination == NULL) { |
if (source == NULL || destination == NULL) { |
114 |
fatal("missing argument"); |
fatal_command_line("missing argument"); |
115 |
} |
} |
116 |
|
|
117 |
source = make_canonical_path(source); |
source = make_canonical_path(source); |