Update 'sk1/main.c'
This commit is contained in:
parent
3b4d09dfa2
commit
c40a3ff667
@ -16,11 +16,10 @@ int main(int argc, char* argv[]) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (strcmp(argv[1], "-c") == 0) {
|
||||
compress(infile, outfile);
|
||||
} else if (strcmp(argv[1], "-d") == 0) {
|
||||
decompress(infile, outfile);
|
||||
} else {
|
||||
compress(argv[2], argv[3]);
|
||||
} else {
|
||||
fprintf(stderr, "Invalid option: %s\n", argv[1]);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user