nl: update usage

This commit is contained in:
Connor Lane Smith 2011-05-29 21:34:02 +01:00
parent 430b453c4d
commit 97b6c267ce

2
nl.c
View File

@ -27,7 +27,7 @@ main(int argc, char *argv[])
if(optarg[0] == 'p') if(optarg[0] == 'p')
regcomp(&preg, &optarg[1], REG_NOSUB); regcomp(&preg, &optarg[1], REG_NOSUB);
else if(!strchr("ant", optarg[0]) || optarg[1] != '\0') else if(!strchr("ant", optarg[0]) || optarg[1] != '\0')
eprintf("usage: %s [-b mode] [file...]\n", argv[0]); eprintf("usage: %s [-b mode] [-i increment] [-s separator] [file...]\n", argv[0]);
break; break;
case 'i': case 'i':
incr = strtol(optarg, &end, 0); incr = strtol(optarg, &end, 0);