Skip to content

Commit d1deb72

Browse files
committed
Don't make port required if we know it has a default value
1 parent b93a8be commit d1deb72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/MetaCPAN/Role/Script.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ has aliases_info => (
121121
has port => (
122122
isa => Int,
123123
is => 'ro',
124-
required => 1,
124+
required => 0,
125+
lazy => 1,
126+
default => sub {5000},
125127
documentation => 'Port for the proxy, defaults to 5000',
126128
);
127129

0 commit comments

Comments
 (0)