Browse Source

Updated readme with help output

master
Ben Savage 6 years ago
parent
commit
60eada2157
  1. 20
      README.md

20
README.md

@ -1,3 +1,21 @@
# stanza
Like grep, but for delimited blocks of text
Like grep, but for delimited blocks of text
Usage: stanza [-h] [-1] [-d] [-m /r/] [-c /r/] [-f FILE] open close
Output lines based on complex criteria
positional arguments:
open Regex to open the stanza start buffering on
close Regex to close a stanza and output buffer
optional arguments:
-h, --help show this help message and exit
-1, --oneline Output each stanza on one line
-d, --debug Debug
-m /r/, --match /r/ Regex to indicate a valid/desired stanza to output
-c /r/, --callback /r/
A callback to run for each stanza
-f FILE, --file FILE File to operate on, defaults to stdin

Loading…
Cancel
Save