fix: rename args

This commit is contained in:
xkeyC 2024-03-15 00:03:04 +08:00
parent b2c13a8a6f
commit 7882159139

View File

@ -2,9 +2,9 @@ import 'auto_l10n.dart';
void main(List<String> args) { void main(List<String> args) {
switch (args.elementAtOrNull(0)) { switch (args.elementAtOrNull(0)) {
case "gen": case "l10n_gen":
return AutoL10nTools().genL10nFiles(); return AutoL10nTools().genL10nFiles();
case "replace": case "l10n_replace":
return AutoL10nTools().replaceL10nFiles(); return AutoL10nTools().replaceL10nFiles();
default: default:
throw Exception("cmd not found"); throw Exception("cmd not found");