jp2cli: add read command and getopt support