Commit bfb89195 authored by Devon Carew's avatar Devon Carew

add a hidden flag for backwards compatibility

parent 33874eb7
...@@ -22,6 +22,8 @@ class BuildCommand extends FlutterCommand { ...@@ -22,6 +22,8 @@ class BuildCommand extends FlutterCommand {
defaultsTo: defaultMainPath, defaultsTo: defaultMainPath,
help: 'Target app path / main entry-point file.' help: 'Target app path / main entry-point file.'
); );
// TODO(devoncarew): Remove this once the xcode project is switched over.
argParser.addOption('main', hide: true);
argParser.addOption('manifest', defaultsTo: defaultManifestPath); argParser.addOption('manifest', defaultsTo: defaultManifestPath);
argParser.addOption('private-key', defaultsTo: defaultPrivateKeyPath); argParser.addOption('private-key', defaultsTo: defaultPrivateKeyPath);
argParser.addOption('output-file', abbr: 'o', defaultsTo: defaultFlxOutputPath); argParser.addOption('output-file', abbr: 'o', defaultsTo: defaultFlxOutputPath);
...@@ -41,7 +43,7 @@ class BuildCommand extends FlutterCommand { ...@@ -41,7 +43,7 @@ class BuildCommand extends FlutterCommand {
return await build( return await build(
toolchain, toolchain,
assetBase: argResults['asset-base'], assetBase: argResults['asset-base'],
mainPath: argResults['target'], mainPath: argResults.wasParsed('main') ? argResults['main'] : argResults['target'],
manifestPath: argResults['manifest'], manifestPath: argResults['manifest'],
outputPath: outputPath, outputPath: outputPath,
snapshotPath: argResults['snapshot'], snapshotPath: argResults['snapshot'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment