Index: test/trailing_options_test.dart |
diff --git a/test/trailing_options_test.dart b/test/trailing_options_test.dart |
index 2ee860ca2f56b589d579a388139c8c236db55d38..24f6ce73336fe66d346bba417a4ac6c28179cff9 100644 |
--- a/test/trailing_options_test.dart |
+++ b/test/trailing_options_test.dart |
@@ -19,9 +19,9 @@ void main() { |
parser = new ArgParser(allowTrailingOptions: true); |
}); |
- void expectThrows(List<String> args) => |
- expect(() => parser.parse(args), throwsFormatException, |
- reason: "with allowTrailingOptions: true"); |
+ void expectThrows(List<String> args) => expect( |
+ () => parser.parse(args), throwsFormatException, |
+ reason: "with allowTrailingOptions: true"); |
test('collects non-options in rest', () { |
parser.addFlag('flag'); |
@@ -84,8 +84,8 @@ void main() { |
test("uses the innermost command's trailing options behavior", () { |
var parser = new ArgParser(allowTrailingOptions: true); |
parser.addFlag('flag', abbr: 'f'); |
- var command = parser.addCommand('cmd', |
- new ArgParser(allowTrailingOptions: false)); |
+ var command = |
+ parser.addCommand('cmd', new ArgParser(allowTrailingOptions: false)); |
command.addFlag('verbose', abbr: 'v'); |
var results = parser.parse(['a', '-f', 'b']); |