Adding some rudimentary command-line options for this script.
More information from upgrade script.