Add command-line interface, make various options work when compiling a package.