Skip to content

Commit b1f3e01

Browse files
committed
asfjkl
1 parent e045713 commit b1f3e01

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,13 +1017,15 @@ int main(int argc, char **argv) {
10171017
return 1;
10181018
}
10191019
return list_files (zip_path);
1020-
} else if (mode_extract) {
1020+
}
1021+
if (mode_extract) {
10211022
if (argc < 3) {
10221023
usage ();
10231024
return 1;
10241025
}
10251026
return extract_all (zip_path);
1026-
} else if (mode_create || mode_append) {
1027+
}
1028+
if (mode_create || mode_append) {
10271029
if (argc < 4) {
10281030
fprintf (stderr, "Error: No files specified to %s.\n", mode_create? "create archive with": "add to archive");
10291031
usage ();

0 commit comments

Comments
 (0)