mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +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
1 changed files with 2 additions and 3 deletions
|
@ -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