mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
parent
f27b0611f4
commit
f1938c60af
@ -28,8 +28,15 @@ const List<String> _kRequiredOptions = const <String>[
|
|||||||
_kOptionWorking,
|
_kOptionWorking,
|
||||||
];
|
];
|
||||||
|
|
||||||
Future<Null> main(List<String> args) async {
|
void main(List<String> args) async {
|
||||||
context[Logger] = new StdoutLogger();
|
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()
|
final ArgParser parser = new ArgParser()
|
||||||
..addOption(_kOptionPackages, help: 'The .packages file')
|
..addOption(_kOptionPackages, help: 'The .packages file')
|
||||||
..addOption(_kOptionOutput, help: 'The generated flx file')
|
..addOption(_kOptionOutput, help: 'The generated flx file')
|
||||||
|
Loading…
Reference in New Issue
Block a user