Skip to content

Commit

Permalink
have flutter build emit better help text
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Apr 6, 2016
1 parent 798dfa2 commit 39efe4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/commands/build.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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(() {
Expand Down

0 comments on commit 39efe4a

Please sign in to comment.