Setup:

  $ . $TESTDIR/setup.sh
  $ echo "the quick brown foxy" > blah.txt
  $ echo "another foxlike word" >> blah.txt
  $ echo "no matches here" >> blah.txt
  $ echo "blah blah blah" >> blah.txt

Only print matches:

  $ ag -o "fox\w+"
  blah.txt:1:foxy
  blah.txt:2:foxlike

Always print matches on separate lines:

  $ ag -o "blah"
  blah.txt:4:blah
  blah.txt:4:blah
  blah.txt:4:blah

Setup:

  $ . $TESTDIR/setup.sh
  $ echo "the quick brown foxy" > blah.txt
  $ echo "blah blah blah" >> blah.txt
  $ echo "another foxlike word" >> blah.txt
  $ echo "no matches here" >> blah.txt
  $ echo "blah blah blah" >> blah.txt

Only print matches:

  $ ag -o "fox\w+"
  blah.txt:1:foxy
  blah.txt:3:foxlike

Always print matches on separate lines:

  $ ag -o "blah"
  blah.txt:2:blah
  blah.txt:2:blah
  blah.txt:2:blah
  blah.txt:5:blah
  blah.txt:5:blah
  blah.txt:5:blah

Update --only-matching test case to get slightly more coverage.
Update --only-matching test case to get slightly more coverage.
