)]}' { "commit": "bf84666fefc171e3f82d4fd2b064804529f97089", "tree": "eed34a6812ff74da4a3f3bfa09c043bad6fc2fd0", "parents": [ "8d82f3e2b38759279421455682b6641ce4d75043" ], "author": { "name": "Jacob MacDonald", "email": "jakemac@google.com", "time": "Tue Jun 01 10:04:33 2021 -0700" }, "committer": { "name": "GitHub", "email": "noreply@github.com", "time": "Tue Jun 01 10:04:33 2021 -0700" }, "message": "fix a null assertion error when there are missing mandatory args in commands (#199)\n\nFixes https://github.com/dart-lang/args/issues/197\r\n\r\nThe 2nd argument to ArgParserException is supposed to be the command chain that it was parsed from and not the option (note this is handled separately as well) - this was causing the command runner to throw a null assertion error later on by passing the name of the mandatory option as the command name, which doesn\u0027t exist as a command.", "tree_diff": [ { "type": "modify", "old_id": "37d622036a1c2153428d3cc516ff5b56ad2ab807", "old_mode": 33188, "old_path": "CHANGELOG.md", "new_id": "ab3833930fac64a4c706ba166b2d18bb0c18d87b", "new_mode": 33188, "new_path": "CHANGELOG.md" }, { "type": "modify", "old_id": "de987a83835db4518a2041beb99c65a219c546a0", "old_mode": 33188, "old_path": "lib/src/parser.dart", "new_id": "ed6e2c7b8c1bc2dd29014deb45702f098125d7c7", "new_mode": 33188, "new_path": "lib/src/parser.dart" }, { "type": "modify", "old_id": "5fe2b89ac12f59ef0344bb93372a2262797994ad", "old_mode": 33188, "old_path": "pubspec.yaml", "new_id": "e3db8cdf7704a1e97f2b79b32305f1446569502e", "new_mode": 33188, "new_path": "pubspec.yaml" }, { "type": "modify", "old_id": "f030adc5078457b9e8b739d0f1b1bd4b7a48e7d6", "old_mode": 33188, "old_path": "test/command_runner_test.dart", "new_id": "29dd9fad1db50559acfeda830d472eb9b053a61d", "new_mode": 33188, "new_path": "test/command_runner_test.dart" } ] }