diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 61eb4a567d..6924907cbf 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -528,8 +528,8 @@ To evaluate code in the shell: /// Main entry point for parsing deno's command line flags. pub fn flags_from_vec(args: Vec) -> clap::Result { let version = crate::version::deno(); - let app = clap_root(&version); - let matches = app.clone().try_get_matches_from(&args)?; + let mut app = clap_root(&version); + let matches = app.try_get_matches_from_mut(&args)?; let mut flags = Flags::default();