Skip to content

Commit 6f28243

Browse files
authored
[webdev] Hide --null-safety option (#2206)
1 parent 1c5a7bc commit 6f28243

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

webdev/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 3.0.8
44

5+
- Hide and deprecate now unsupported `--null-safety` option. - [#2206](https://github.com/dart-lang/webdev/pull/2206)
56
- Update Dart SDK constraint to `>=3.2.0-36.0.dev <4.0.0`. - [#2207](https://github.com/dart-lang/webdev/pull/2207)
67
- Update `dwds` constraint to `21.0.0`.
78

webdev/README.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,6 @@ Common:
103103
"--output" value should be passed to
104104
`build_runner`.
105105
(defaults to "NONE")
106-
-n, --null-safety If "sound",
107-
`package:build_web_compilers` will be
108-
run with sound null safety support.
109-
If "unsound",
110-
`package:build_web_compilers` will be
111-
run without sound null safety
112-
support. If "auto", the default
113-
`package:build_web_compilers`
114-
behavior is used.
115-
[sound, unsound, auto (default)]
116106
-r, --[no-]release Build with release mode defaults for
117107
builders.
118108
--[no-]build-web-compilers If a dependency on
@@ -145,16 +135,6 @@ Usage: webdev build [arguments]
145135
"--output" value should be passed to
146136
`build_runner`.
147137
(defaults to "web:build")
148-
-n, --null-safety If "sound",
149-
`package:build_web_compilers` will be
150-
run with sound null safety support.
151-
If "unsound",
152-
`package:build_web_compilers` will be
153-
run without sound null safety
154-
support. If "auto", the default
155-
`package:build_web_compilers`
156-
behavior is used.
157-
[sound, unsound, auto (default)]
158138
-r, --[no-]release Build with release mode defaults for
159139
builders.
160140
(defaults to on)

webdev/lib/src/command/shared.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ void addSharedArgs(ArgParser argParser,
3333
defaultsTo: nullSafetyAuto,
3434
allowed: [nullSafetySound, nullSafetyUnsound, nullSafetyAuto],
3535
help:
36-
'If "sound", `package:build_web_compilers` will be run with sound '
37-
'null safety support. '
36+
'DEPRECATED: If "sound", `package:build_web_compilers` will be run '
37+
'with sound null safety support. '
3838
'If "unsound", `package:build_web_compilers` will be run without '
3939
'sound null safety support. '
4040
'If "auto", the default `package:build_web_compilers` '
41-
'behavior is used.')
41+
'behavior is used.',
42+
hide: true)
4243
..addFlag(releaseFlag,
4344
abbr: 'r',
4445
defaultsTo: releaseDefault,

0 commit comments

Comments
 (0)