feat: throw error when pass undefined flavor name.

This commit is contained in:
2021-03-17 00:20:03 +08:00
parent 202b738cb0
commit 97609a0a45
+3
View File
@@ -34,6 +34,9 @@ void main(List<String> 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({