optparse and linereader