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; cp_rflag = true;
break; break;
default: default:
exit(EXIT_FAILURE); usage();
} ARGEND; } ARGEND;
if (argc < 2) if (argc < 2)