aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2005-08-05 01:04:36 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2005-08-05 01:04:36 +0000
commitdfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c (patch)
treebb20b2dbd5bdd21c40f064992255185b35a78131 /usr.bin/lam
parent0873506fc05b0965cbe107dc630af7ab750fe738 (diff)
downloadsrc-dfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c.tar.gz
src-dfaacec6ffb1c5cc8de0a34da3a6bc5b5f0ba38c.zip
Notes
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c9
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;