Commit 39efe4af authored by Devon Carew's avatar Devon Carew

have flutter build emit better help text

parent 798dfa2b
......@@ -8,8 +8,8 @@ import 'dart:io';
import '../globals.dart';
import '../runner/flutter_command.dart';
import 'build_apk.dart';
import 'build_ios.dart';
import 'build_flx.dart';
import 'build_ios.dart';
class BuildCommand extends FlutterCommand {
BuildCommand() {
......
......@@ -9,8 +9,8 @@ import 'package:args/args.dart';
import 'package:args/command_runner.dart';
import 'package:path/path.dart' as path;
import '../artifacts.dart';
import '../android/android_sdk.dart';
import '../artifacts.dart';
import '../base/context.dart';
import '../base/logger.dart';
import '../base/process.dart';
......@@ -173,6 +173,10 @@ class FlutterCommandRunner extends CommandRunner {
@override
Future<dynamic> run(Iterable<String> args) {
// Have an invocation of 'build' print out it's sub-commands.
if (args.length == 1 && args.first == 'build')
args = <String>['build', '-h'];
return super.run(args).then((dynamic result) {
return result;
}).whenComplete(() {
......
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