script: Add support for command line options.