tools/smaz: add support for command-line options