summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xtest/tsr-SPbin0 -> 154768 bytes
-rw-r--r--trashsys.c8
3 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 14f34f9..440c459 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
CC=gcc
-CFLAGS_TESTBIN=-O0 -Wfatal-errors -Wall -Werror -Wextra -g -fsanitize=address -Wpedantic -std=gnu99
+CFLAGS_TESTBIN=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -Wpedantic -Wformat=2 -Wshadow -Wformat-truncation=2 -Wformat-overflow -fno-common -std=gnu99
CFLAGS=-O3 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static -std=gnu99
TARGET=tsr
TESTTARGET=tsr-TESTING
diff --git a/test/tsr-SP b/test/tsr-SP
new file mode 100755
index 0000000..8a10067
--- /dev/null
+++ b/test/tsr-SP
Binary files differ
diff --git a/trashsys.c b/trashsys.c
index a340353..cf8daca 100644
--- a/trashsys.c
+++ b/trashsys.c
@@ -13,12 +13,11 @@
#include <dirent.h>
#include <stdarg.h>
-#define USAGE "tsr [-vt] [-y][-n][-f][-a][-l][-L][-c][-C][-h][-R id] [FILE]\n"
-#define LONG_USAGE "tsr [options] filename\n"\
+#define USAGE "tsr [-vt] [-y][-n][-f][-a][-l][-L][-c][-C][-h][-R id] [FILE(s)]\n"
+#define LONG_USAGE "tsr [options] filename(s)\n"\
"\n"\
"OPTIONS:\n"\
- " -v Verbose mode, not recommended.\n"\
- " -t /tmp mode. tsr will use /tmp instead of the user's $HOME\n"\
+ " -t /tmp mode. tsr will use /tmp instead of the user's $HOME.\n"\
" -y Answer 'yes' when pressing return on all [Y / N] prompts.\n"\
" -n Answer 'no' when pressing return on all [Y / N] prompts.\n"\
" -f Force answer 'yes' on all [Y / N] prompts. Prompt will not show.\n"\
@@ -29,6 +28,7 @@
" -C Clear all trashed files regardless of age. Will prompt with a [Y / N] prompt.\n"\
" -h Display this help message.\n"\
" -R id Restore a file by ID. Use -l or -L to find the ID associated with the file.\n"\
+ " -v Verbose mode, not recommended unless you are a developer.\n"\
"\n"
#define MODE_NORMAL -1
#define MODE_YES 0