mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
parent
f27b0611f4
commit
f1938c60af
|
@ -28,8 +28,15 @@ const List<String> _kRequiredOptions = const <String>[
|
|||
_kOptionWorking,
|
||||
];
|
||||
|
||||
Future<Null> main(List<String> args) async {
|
||||
context[Logger] = new StdoutLogger();
|
||||
void main(List<String> args) async {
|
||||
AppContext executableContext = new AppContext();
|
||||
executableContext.runInZone(() {
|
||||
context[Logger] = new StdoutLogger();
|
||||
return run(args);
|
||||
});
|
||||
}
|
||||
|
||||
Future<Null> run(List<String> args) async {
|
||||
final ArgParser parser = new ArgParser()
|
||||
..addOption(_kOptionPackages, help: 'The .packages file')
|
||||
..addOption(_kOptionOutput, help: 'The generated flx file')
|
||||
|
|
Loading…
Reference in a new issue