[custom-devices] general improvements, add custom-devices subcommand, better error handling (#82043)
This commit is contained in:
@@ -171,8 +171,12 @@ class FlutterCommandRunner extends CommandRunner<void> {
|
||||
Future<void> run(Iterable<String> args) {
|
||||
// Have an invocation of 'build' print out it's sub-commands.
|
||||
// TODO(ianh): Move this to the Build command itself somehow.
|
||||
if (args.length == 1 && args.first == 'build') {
|
||||
args = <String>['build', '-h'];
|
||||
if (args.length == 1) {
|
||||
if (args.first == 'build') {
|
||||
args = <String>['build', '-h'];
|
||||
} else if (args.first == 'custom-devices') {
|
||||
args = <String>['custom-devices', '-h'];
|
||||
}
|
||||
}
|
||||
|
||||
return super.run(args);
|
||||
|
||||
Reference in New Issue
Block a user