Skip to content

Commit d27e144

Browse files
devoncarewCommit Queue
authored andcommitted
Bump args to 09c0fca1785c9df39288a48f767994eed80bed40
Changes: ``` > git log --format="%C(auto) %h %s" e623652..09c0fca https://dart.googlesource.com/args.git/+/09c0fca Bump actions/checkout from 4.1.7 to 4.2.0 in the github-actions group (286) https://dart.googlesource.com/args.git/+/9cdc872 Add argument name when throwing a `ArgParserException`. (283) ``` Diff: https://dart.googlesource.com/args.git/+/e623652744c82533829f2e62b1aba1a6cf06e291..09c0fca1785c9df39288a48f767994eed80bed40/ Change-Id: I804c86db060b3c83acd34c00dd76953c6f28f70a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388744 Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Devon Carew <[email protected]>
1 parent edecf19 commit d27e144

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ vars = {
120120
# EOL comment after a dependency to disable this and pin it at its current
121121
# revision.
122122

123-
"args_rev": "e623652744c82533829f2e62b1aba1a6cf06e291", #
123+
"args_rev": "09c0fca1785c9df39288a48f767994eed80bed40", #
124124
"async_rev": "5f70a996f673d625e3502597084653686c3e754c",
125125
"bazel_worker_rev": "aa3cc9e826350b960e0c5a67e6065bcedba8b0ac",
126126
"benchmark_harness_rev": "44f125ae1d045aa3de09fe88a8dd70cb7352d563",

pkg/dartdev/test/commands/pub_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void pub() {
9191
var result = await p.run(['pub', 'deps', '--foo']);
9292
expect(result.exitCode, 64);
9393
expect(result.stdout, isEmpty);
94-
expect(result.stderr, startsWith('Could not find an option named "foo".'));
94+
expect(
95+
result.stderr, startsWith('Could not find an option named "--foo".'));
9596
});
9697
}

pkg/dartdev/test/commands/run_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ void main(List<String> args) => print("$b $args");
414414
expect(result.stdout, isEmpty);
415415
expect(
416416
result.stderr,
417-
contains('Could not find an option named "vm-name".'),
417+
contains('Could not find an option named "--vm-name".'),
418418
);
419419
expect(result.exitCode, 64);
420420
});
@@ -433,7 +433,7 @@ void main(List<String> args) => print("$b $args");
433433
expect(result.stdout, isEmpty);
434434
expect(
435435
result.stderr,
436-
contains('Could not find an option named "verbose_gc".'),
436+
contains('Could not find an option named "--verbose_gc".'),
437437
);
438438
expect(result.exitCode, 64);
439439
});

pkg/dev_compiler/test/worker/worker_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void main() {
113113

114114
expect(result.exitCode, 64);
115115
expect(result.stdout,
116-
contains('Could not find an option named "does-not-exist"'));
116+
contains('Could not find an option named "--does-not-exist"'));
117117
expect(result.stderr, isEmpty);
118118
expect(outputJsFile.existsSync(), isFalse);
119119
});

pkg/test_runner/test/options_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ void testValidation() {
8686
['--timeout=1,2'], 'Integer value expected for option "--timeout".');
8787

8888
expectValidationError(['--progress=unknown'],
89-
'"unknown" is not an allowed value for option "progress".');
89+
'"unknown" is not an allowed value for option "--progress".');
9090
// Don't allow multiple.
9191
expectValidationError(['--progress=compact,silent'],
92-
'"compact,silent" is not an allowed value for option "progress".');
92+
'"compact,silent" is not an allowed value for option "--progress".');
9393

9494
expectValidationError(['--nnbd=unknown'],
95-
'"unknown" is not an allowed value for option "nnbd".');
95+
'"unknown" is not an allowed value for option "--nnbd".');
9696
// Don't allow multiple.
9797
expectValidationError(['--nnbd=weak,strong'],
98-
'"weak,strong" is not an allowed value for option "nnbd".');
98+
'"weak,strong" is not an allowed value for option "--nnbd".');
9999

100100
// Don't allow invalid named configurations.
101101
expectValidationError(['-ninvalid-vm-android-simarm'],

0 commit comments

Comments
 (0)