fix: removed unstable-htttp from deno help (#25216)

Closes #25210 .

Removed --unstable-http from being displayed on deno run --help=unstable

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
HasanAlrimawi 2024-08-27 14:45:27 +03:00 committed by GitHub
parent 7e68cce815
commit 672ce3041a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 114 additions and 89 deletions

View file

@ -100,9 +100,9 @@ pub fn op_bootstrap_unstable_args(state: &mut OpState) -> Vec<String> {
}
let mut flags = Vec::new();
for (name, _, id) in crate::UNSTABLE_GRANULAR_FLAGS.iter() {
if options.unstable_features.contains(id) {
flags.push(format!("--unstable-{}", name));
for granular_flag in crate::UNSTABLE_GRANULAR_FLAGS.iter() {
if options.unstable_features.contains(&granular_flag.id) {
flags.push(format!("--unstable-{}", granular_flag.name));
}
}
flags