Skip to content

Commit 3acb931

Browse files
nshahankevmoo
authored andcommitted
Pass the remaining args when running serve (#35)
1 parent 063b145 commit 3acb931

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

webdev/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.5
2+
3+
- Pass the arguments supporting `directory:port` for the `serve` command.
4+
15
## 0.1.4
26

37
- Require and use features from `build_runner` 0.8.2.

webdev/lib/src/command/serve_command.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class ServeCommand extends CommandBase {
4949
arguments.add('--log-requests');
5050
}
5151

52+
// The remaining arguments should be interpreted as [<directory>[:<port>]].
53+
arguments.addAll(argResults.rest);
54+
5255
return arguments;
5356
}
5457

webdev/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: webdev
2-
version: 0.1.4
2+
version: 0.1.5-dev
33
author: Dart Team <[email protected]>
44
homepage: https://github.com/dart-lang/webdev
55
description: >-

0 commit comments

Comments
 (0)