[hackers] [sbase] Show usage instead of exiting silently on an invalid option || sin
commit 1851c02a9599f6a4d15eab979609a90e71aca69d
Author: sin <sin_AT_2f30.org>
Date: Thu Dec 12 13:29:30 2013 +0000
Show usage instead of exiting silently on an invalid option
diff --git a/cp.c b/cp.c
index 6d864ec..fec7aa7 100644
--- a/cp.c
+++ b/cp.c
_AT_@ -22,7 +22,7 @@ main(int argc, char *argv[])
cp_rflag = true;
break;
default:
- exit(EXIT_FAILURE);
+ usage();
} ARGEND;
if (argc < 2)
Received on Thu Dec 12 2013 - 14:30:31 CET
This archive was generated by hypermail 2.3.0
: Thu Dec 12 2013 - 14:36:26 CET