aboutsummaryrefslogtreecommitdiff
path: root/bpeg.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-13 16:13:01 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-13 16:13:01 -0700
commitc589b46b4fcc442dc8558b4d62060abb17ec20eb (patch)
tree03e71a9799c5d53e9b9c118422f3cf56fd850b8c /bpeg.c
parent87430957089fb09911a84d49dffeca71597e50a7 (diff)
Updated usage
Diffstat (limited to 'bpeg.c')
-rw-r--r--bpeg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bpeg.c b/bpeg.c
index 5204d98..95f133c 100644
--- a/bpeg.c
+++ b/bpeg.c
@@ -50,8 +50,11 @@ static const char *usage = (
"Flags:\n"
" -h --help\t print the usage and quit\n"
" -v --verbose\t print verbose debugging info\n"
- " -d --define <name>=<def> Define a grammar rule\n"
+ " -d --define <name>=<def> define a grammar rule\n"
+ " -e --escaped <pat>\t provide an escaped pattern (equivalent to bpeg '\\(<pat>)')\n"
+ " -s --string <pat>\t provide a string pattern (equivalent to bpeg '<pat>', but may be useful if '<pat>' begins with a '-')\n"
" -r --replace <replacement> replace the input pattern with the given replacement\n"
+ " -m --mode <mode>\t set the behavior mode (defult: find-all)\n"
" -g --grammar <grammar file> use the specified file as a grammar\n");
static char *getflag(const char *flag, char *argv[], int *i)