mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Bug fix: Now handles that "summary" does not require any arguments.
R=johnniwinther@google.com Review-Url: https://codereview.chromium.org/2970963002 .
This commit is contained in:
parent
4174896332
commit
e451f16db0
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue