diff options
author | jmallett <jmallett@FreeBSD.org> | 2005-08-05 01:04:36 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2005-08-05 01:04:36 +0000 |
commit | 8334e4160937e043ee1c77ad962f6347033a631c (patch) | |
tree | bb20b2dbd5bdd21c40f064992255185b35a78131 /usr.bin | |
parent | cf76314de35779e98b3beef3d947a013553b9d45 (diff) | |
download | FreeBSD-src-8334e4160937e043ee1c77ad962f6347033a631c.zip FreeBSD-src-8334e4160937e043ee1c77ad962f6347033a631c.tar.gz |
Call usage() instead of being insolent.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/lam/lam.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c index 40cd945..333549f 100644 --- a/usr.bin/lam/lam.c +++ b/usr.bin/lam/lam.c @@ -136,14 +136,14 @@ getargs(char *av[]) if (*++p || (p = *++av)) ip->sepstring = p; else - errx(1, "need string after -%s", c); + usage(); S = (*c == 'S' ? 1 : 0); break; case 't': if (*++p || (p = *++av)) ip->eol = *p; else - errx(1, "need character after -%s", c); + usage(); T = (*c == 'T' ? 1 : 0); nofinalnl = 1; break; @@ -166,11 +166,10 @@ getargs(char *av[]) ip->format = fmtp; } else - errx(1, "need string after -%s", c); + usage(); break; default: - errx(1, "what do you mean by -%s?", c); - break; + usage(); } } ip->fp = NULL; |