aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-05-19 21:58:54 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-05-19 21:58:54 -0700
commit5d5817c2a3d21e91db4eaaf607ff881d71b57638 (patch)
treec147550067d237a8d45c35870e18ea4957772c0b /bp.c
parent6ff7a6753032bc41098042258096bde73ed4bd1c (diff)
Fancier string escape sequences and a bit of cleanup.
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bp.c b/bp.c
index 7899ff0..b01c5b4 100644
--- a/bp.c
+++ b/bp.c
@@ -36,7 +36,7 @@ static const char *description = (
BP_NAME" - a Parsing Expression Grammar command line tool");
static const char *usage = (
"Usage:\n"
- " "BP_NAME" [flags] <pattern> [<input files>...]\n\n"
+ " "BP_NAME" [flags] <pattern> [<files>...]\n\n"
"Flags:\n"
" -h --help print the usage and quit\n"
" -v --verbose print verbose debugging info\n"
@@ -48,10 +48,10 @@ static const char *usage = (
" -l --list-files list filenames only\n"
" -p --pattern <pat> provide a pattern (equivalent to bp '\\(<pat>)')\n"
" -r --replace <replacement> replace the input pattern with the given replacement\n"
- " -s --skip <skip pattern> skip over the given pattern when looking for matches\n"
+ " -s --skip <skip-pattern> skip over the given pattern when looking for matches\n"
" -c --context <context> set number of lines of context to print (all: the whole file, 0: only the match, 1: the line, N: N lines of context)\n"
" -f --format auto|fancy|plain set the output format\n"
- " -g --grammar <grammar file> use the specified file as a grammar");
+ " -g --grammar <grammar-file> use the specified file as a grammar");
// Used as a heuristic to check if a file is binary or text:
#define CHECK_FIRST_N_BYTES 128