~yerinalexey/rex

3c962169fe5f6f35de26177362afdf1bf440d113 — Alexey Yerin 5 months ago 347d008
Update usage information
2 files changed, 5 insertions(+), 5 deletions(-)

M README.md
M main.go
M README.md => README.md +4 -4
@@ 17,12 17,12 @@ export PATH="$PATH:$GOPATH/bin"

# Usage
```
$ rex [flags] FILE
$ rex [flags] [file]
```

Rex reads `FILE` where each line is a test match (multi-line regexes are
not supported). If not specified, the input is read from STDIN. Lines
should be separated by line feeds (`\n`).
Rex reads `[file]` where each line is a test match (multi-line regexes
are not supported). If not specified, the input is read from standard
input.  Lines should be separated by line feeds (`\n`).

In the interface you are presented with a regex input field and a list
of test data highlighted accordingly to them matching a regex.

M main.go => main.go +1 -1
@@ 102,7 102,7 @@ func fromFile(fname string) string {

func main() {
	flag.Usage = func() {
		fmt.Fprintln(os.Stderr, "Usage: rex [flags] <file>")
		fmt.Fprintln(os.Stderr, "Usage: rex [flags] [file]")
		fmt.Fprintln(os.Stderr)
		fmt.Fprintln(os.Stderr, "Flags:")