diff options
author | Juli Mallett <jmallett@FreeBSD.org> | 2005-08-05 01:04:36 +0000 |
---|---|---|
committer | Juli Mallett <jmallett@FreeBSD.org> | 2005-08-05 01:04:36 +0000 |
commit | dfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c (patch) | |
tree | bb20b2dbd5bdd21c40f064992255185b35a78131 /usr.bin/lam | |
parent | 0873506fc05b0965cbe107dc630af7ab750fe738 (diff) | |
download | src-dfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c.tar.gz src-dfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c.zip |
Notes
Diffstat (limited to 'usr.bin/lam')
-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 40cd9453610f..333549fe17a1 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; |