1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

fix(docs): --watch arg is stable (#14970)

This commit is contained in:
Geert-Jan Zwiers 2022-06-27 00:28:45 +02:00 committed by GitHub
parent 8d82ba7299
commit 2d1c48ce17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1986,7 +1986,7 @@ fn compat_arg<'a>() -> Arg<'a> {
fn watch_arg<'a>(takes_files: bool) -> Arg<'a> { fn watch_arg<'a>(takes_files: bool) -> Arg<'a> {
let arg = Arg::new("watch") let arg = Arg::new("watch")
.long("watch") .long("watch")
.help("UNSTABLE: Watch for file changes and restart automatically"); .help("Watch for file changes and restart automatically");
if takes_files { if takes_files {
arg arg
@ -1996,14 +1996,14 @@ fn watch_arg<'a>(takes_files: bool) -> Arg<'a> {
.use_value_delimiter(true) .use_value_delimiter(true)
.require_equals(true) .require_equals(true)
.long_help( .long_help(
"UNSTABLE: Watch for file changes and restart process automatically. "Watch for file changes and restart process automatically.
Local files from entry point module graph are watched by default. Local files from entry point module graph are watched by default.
Additional paths might be watched by passing them as arguments to this flag.", Additional paths might be watched by passing them as arguments to this flag.",
) )
.value_hint(ValueHint::AnyPath) .value_hint(ValueHint::AnyPath)
} else { } else {
arg.long_help( arg.long_help(
"UNSTABLE: Watch for file changes and restart process automatically. \ "Watch for file changes and restart process automatically. \
Only local files from entry point module graph are watched.", Only local files from entry point module graph are watched.",
) )
} }