diff --git a/bin/pre_script.dart b/bin/pre_script.dart index 8542efc..bfaabf1 100644 --- a/bin/pre_script.dart +++ b/bin/pre_script.dart @@ -34,6 +34,9 @@ void main(List arguments) { flavor = args.flavor; isReplace = args.isReplaceMode; + if (!FLAVORS.contains(flavor)) + throw Exception('Undefined flavor !!!'); + _ctx.addEntries(FLAVORS.map((e) => MapEntry(e, e))); _ctx.addAll({