Show usage instead of exiting silently on an invalid option

This commit is contained in:
sin 2013-12-12 13:29:30 +00:00
parent aff51008ea
commit 1851c02a95

2
cp.c
View File

@ -22,7 +22,7 @@ main(int argc, char *argv[])
cp_rflag = true;
break;
default:
exit(EXIT_FAILURE);
usage();
} ARGEND;
if (argc < 2)