We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e045713 commit b1f3e01Copy full SHA for b1f3e01
1 file changed
src/main.c
@@ -1017,13 +1017,15 @@ int main(int argc, char **argv) {
1017
return 1;
1018
}
1019
return list_files (zip_path);
1020
- } else if (mode_extract) {
+ }
1021
+ if (mode_extract) {
1022
if (argc < 3) {
1023
usage ();
1024
1025
1026
return extract_all (zip_path);
- } else if (mode_create || mode_append) {
1027
1028
+ if (mode_create || mode_append) {
1029
if (argc < 4) {
1030
fprintf (stderr, "Error: No files specified to %s.\n", mode_create? "create archive with": "add to archive");
1031
0 commit comments