Skip to content

Commit 969a996

Browse files
committed
Rename _printHelp -> _printHelpAndExit to be clear about behavior
1 parent ebdf2bc commit 969a996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/dartdoc.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ main(List<String> arguments) async {
3131
}
3232

3333
if (args['help']) {
34-
_printHelp(parser);
34+
_printHelpAndExit(parser);
3535
}
3636

3737
if (args['version']) {
@@ -328,7 +328,7 @@ void _onProgress(var file) {
328328
}
329329

330330
/// Print help if we are passed the help option.
331-
void _printHelp(ArgParser parser, {int exitCode: 0}) {
331+
void _printHelpAndExit(ArgParser parser, {int exitCode: 0}) {
332332
print('Generate HTML documentation for Dart libraries.\n');
333333
_printUsageAndExit(parser, exitCode: exitCode);
334334
}

0 commit comments

Comments
 (0)