Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: tools/gardening/bin/summary.dart

Issue 2970963002: Bug fix: Now handles that "summary" does not require any arguments. (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/bin/summary.dart
diff --git a/tools/gardening/bin/summary.dart b/tools/gardening/bin/summary.dart
index ac4d9b063b104986659a8d37e8c32c3e6647dbde..6febcddb8dad3b2a78e9aa7db6ef7fd4a1541121 100644
--- a/tools/gardening/bin/summary.dart
+++ b/tools/gardening/bin/summary.dart
@@ -17,10 +17,9 @@ main(List<String> args) async {
ArgParser argParser = createArgParser();
ArgResults argResults = argParser.parse(args);
processArgResults(argResults);
- if (argResults.rest.length == 0 || argResults['help']) {
+ if (argResults['help']) {
help(argParser);
- if (argResults['help']) return;
- exit(1);
+ return;
}
var bot = new Bot(logdog: argResults['logdog']);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698