diff options
author | 2017-12-10 09:17:24 +0000 | |
---|---|---|
committer | 2017-12-10 09:17:24 +0000 | |
commit | 1bab628a3398d7958ae7b8d5aa030f109778701f (patch) | |
tree | eadce316359414ba45096938aa0d832906376f90 /usr.bin/grep/grep.c | |
parent | add the zte mf831; from christoph r. murauer (diff) | |
download | wireguard-openbsd-1bab628a3398d7958ae7b8d5aa030f109778701f.tar.xz wireguard-openbsd-1bab628a3398d7958ae7b8d5aa030f109778701f.zip |
- add max-count to SYNOPSIS
- list long options with short, where they have an equivalent
- sync usage()
- minor tweaks
Diffstat (limited to 'usr.bin/grep/grep.c')
-rw-r--r-- | usr.bin/grep/grep.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c index 401ed503cbb..913cc97a0f3 100644 --- a/usr.bin/grep/grep.c +++ b/usr.bin/grep/grep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.c,v 1.56 2017/12/09 18:38:37 pirofti Exp $ */ +/* $OpenBSD: grep.c,v 1.57 2017/12/10 09:17:24 jmc Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -110,12 +110,13 @@ usage(void) { fprintf(stderr, #ifdef NOZ - "usage: %s [-abcEFGHhIiLlnoqRsUVvwx] [-A num] [-B num] [-C[num]]\n" + "usage: %s [-abcEFGHhIiLlnoqRsUVvwx] [-A num] [-B num] [-C[num]]" #else - "usage: %s [-abcEFGHhIiLlnoqRsUVvwxZ] [-A num] [-B num] [-C[num]]\n" + "usage: %s [-abcEFGHhIiLlnoqRsUVvwxZ] [-A num] [-B num] [-C[num]]" #endif - "\t[-e pattern] [-f file] [-m num] [--binary-files=value]\n" - "\t[--context[=num]] [--line-buffered] [pattern] [file ...]\n", + " [-e pattern]\n" + "\t[-f file] [-m num] [--binary-files=value] [--context[=num]]\n" + "\t[--line-buffered] [--max-count=num] [pattern] [file ...]\n", __progname); exit(2); } |