Skip to content

Commit 1be93f6

Browse files
authored
Support --dtd-exposed-uri in dt (#9302)
`--dtd-exposed-uri` is a flag supported by the DevTools server but not in `dt serve`. This makes it difficult to run DevTools from source in a web based IDE because Dart-Code will pass this flag and the call to `dt serve` will fail.
1 parent bc060b8 commit 1be93f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tool/lib/commands/serve.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const _buildAppFlag = 'build-app';
1919
// AllowAnythingParser instead of manually passing these args through.
2020
const _machineFlag = 'machine';
2121
const _dtdUriFlag = 'dtd-uri';
22+
const _dtdExposedUriFlag = 'dtd-exposed-uri';
2223
const _allowEmbeddingFlag = 'allow-embedding';
2324

2425
/// This command builds DevTools in release mode by running the
@@ -103,6 +104,11 @@ class ServeCommand extends Command {
103104
_dtdUriFlag,
104105
help: 'Sets the dtd uri when starting the devtools server',
105106
)
107+
..addOption(
108+
_dtdExposedUriFlag,
109+
help:
110+
'Sets the dtd uri that is exposed to the client when starting the devtools server',
111+
)
106112
..addFlag(
107113
_allowEmbeddingFlag,
108114
help: 'Allow embedding DevTools inside an iframe.',

0 commit comments

Comments
 (0)