summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-11-03 13:57:19 +0100
committerOskar <[email protected]>2024-11-03 13:57:19 +0100
commitb4804185ef139871f308497cf6af045a9fed0a7a (patch)
treedd557fd5054ba32d3cfefb988c1b2d843e59220c
parent3ec2b3343a6e469421cc3d22d245f8bb0a6ada11 (diff)
a
-rw-r--r--trashsystem2.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/trashsystem2.cpp b/trashsystem2.cpp
index 75671c2..44a8dcf 100644
--- a/trashsystem2.cpp
+++ b/trashsystem2.cpp
@@ -489,6 +489,17 @@ TS_FUNCTION_RESULT restore_file(const directory_entry &de, const initial_path_in
return FUNCTION_FAILURE;
}
+TS_FUNCTION_RESULT clear_old_files(initial_path_info &ipi) {
+
+
+ return FUNCTION_SUCCESS;
+}
+
+TS_FUNCTION_RESULT clear_all_trashed(initial_path_info &ipi) {
+
+ return FUNCTION_SUCCESS;
+}
+
inline void usage_out(std::ostream &out) {
out << USAGE << std::ends;
@@ -635,7 +646,12 @@ int main (int argc, char **argv) {
return EXIT_FAILURE;
}
- if(R_used == true) {
+ if(R_used == true) {
+ if(argc > 3) {
+ usage_out(std::cerr);
+ return EXIT_FAILURE;
+ }
+
auto argnumber = r_argument_validation(r_arg);
if(argnumber == FUNCTION_FAILURE) {
std::cerr << g_argv << ": Error: Invalid argument. Please provide a valid ID." << std::endl;