Add support for --linelength option (fixes #9)