diff options
author | Oskar <[email protected]> | 2024-07-25 16:29:09 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-07-25 16:29:09 +0200 |
commit | c93556922aa79423e580589bbef70e2573f74ea0 (patch) | |
tree | 7f97aaad850fa2bad74c508abfb7ee42ed5c4554 /trashsys.c | |
parent | c4e9cdd7d7f9a682916723295b0153f662178c21 (diff) |
fixed an option bug
Diffstat (limited to 'trashsys.c')
-rw-r--r-- | trashsys.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -49,6 +49,7 @@ bool v_cvm_fprintf = false; int choice_mode = MODE_NORMAL; char *g_argv = NULL; +int g_loading = true; struct trashsys_log_info { int64_t ts_log_id; @@ -1160,6 +1161,10 @@ int main (int argc, char *argv[]) { } if(R_used == true) { + if(optind != argc) { + USAGE_OUT(stderr); + return EXIT_FAILURE; + } if(restore_file(optarg_converted, &ipi_m) == FUNCTION_FAILURE) { return EXIT_FAILURE; } |