Skip to content

Commit

Permalink
And of course, actually fix the dartdoc preview bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
matanlurey committed Dec 29, 2024
1 parent ae07d5b commit cc4dd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chore/lib/src/command/dartdoc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ final class Dartdoc extends BaseCommand {

final packages = await context.resolve(globalResults!);
final int? port;
if (packages.length == 1) {
if (packages.length == 1 && argResults!.wasParsed('port')) {
port = int.tryParse(argResults!.option('port')!);
} else if (argResults!.flag('preview')) {
io.exitCode = 1;
Expand Down

0 comments on commit cc4dd0d

Please sign in to comment.