summaryrefslogtreecommitdiff
path: root/trashsys.c
diff options
context:
space:
mode:
Diffstat (limited to 'trashsys.c')
-rw-r--r--trashsys.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/trashsys.c b/trashsys.c
index d7cbfa9..00a72cd 100644
--- a/trashsys.c
+++ b/trashsys.c
@@ -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;
}