nl: Return 2 on usage error

This commit is contained in:
Robert Ransom 2012-05-20 12:57:58 +00:00
parent 572dcc2b83
commit c0f60a6f3d

2
nl.c
View File

@ -36,7 +36,7 @@ main(int argc, char *argv[])
sep = optarg;
break;
default:
exit(EXIT_FAILURE);
exit(2);
}
if(optind == argc)
nl(stdin);