feat: add replace mode.

This commit is contained in:
2021-03-17 14:15:17 +08:00
parent 8d14562177
commit f19ed28baa
+1 -1
View File
@@ -34,7 +34,7 @@ void main(List<String> arguments) {
flavor = args.flavor;
isReplace = args.isReplaceMode;
if (!FLAVORS.contains(flavor))
if (!FLAVORS.contains(flavor) && flavor != 'default')
throw Exception('Undefined flavor !!!');
_ctx.addEntries(FLAVORS.map((e) => MapEntry(e, e)));