From: Ralf Jung Date: Sat, 9 Mar 2013 13:30:04 +0000 (+0100) Subject: Reject invalid command combination --reset --no-update X-Git-Url: https://git.ralfj.de/mass-build.git/commitdiff_plain/45cc887bdda51bd4ff8bdcf9baf99e902afa3835?ds=sidebyside Reject invalid command combination --reset --no-update --- diff --git a/mass_build.py b/mass_build.py index 1732565..8f97546 100755 --- a/mass_build.py +++ b/mass_build.py @@ -75,6 +75,8 @@ parser.add_argument("--check-versions", parser.add_argument("projects", metavar='PROJECT', nargs='*', help="Manually specify projects or folders to be built (project names take precedence)") args = parser.parse_args() +if args.reset_source and not args.update: + raise Exception("Can not reset sources without doing an update") # load config config = imp.load_source('config', args.config).__dict__