diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-11 20:49:21 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-12-11 20:49:21 +0000 |
commit | aaedf16ede11d91d3ce8d6652eec3503e993ab9a (patch) | |
tree | bb4f30944005e6e849ca9183337318543364d6f4 | |
parent | ff1e385c6e48cfa2094b4184c0e212ed945b2924 (diff) |
Sync usage() with SYNOPSIS in grep(1).
ok deraadt@ jmc@
-rw-r--r-- | usr.bin/grep/grep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 341ac5b8381..111545df623 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.23 2003/09/07 19:40:54 millert Exp $ */ +/* $OpenBSD: grep.c,v 1.24 2003/12/11 20:49:20 mcbride Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -105,11 +105,12 @@ usage(void) { fprintf(stderr, #ifdef NOZ - "usage: %s [-[AB] num] [-CEFGHILPRSUVabchilnoqsvwx]" + "usage: %s [-AB num] [-CEFGHILPRSUVabchilnoqsvwx]\n" #else - "usage: %s [-[AB] num] [-CEFGHILPRSUVZabchilnoqsvwx]" + "usage: %s [-AB num] [-CEFGHILPRSUVZabchilnoqsvwx]\n" #endif - " [-e pattern] [-f file] [file ...]\n", __progname); + "\t[--context[=num]] [--binary-files=value]\n" + "\t[-e pattern] [-f file] [pattern] [file ...]\n", __progname); exit(2); } |