diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/flags.rs | 4 | ||||
-rw-r--r-- | cli/main.rs | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 93c07f610..00b94f811 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -96,9 +96,9 @@ pub fn create_cli_app<'a, 'b>() -> App<'a, 'b> { .require_equals(true) .help("Set V8 command line options"), ).subcommand( - SubCommand::with_name("prefetch") + SubCommand::with_name("fetch") .setting(AppSettings::DisableVersion) - .about("Prefetch the dependencies") + .about("Fetch the dependencies") .arg(Arg::with_name("file").takes_value(true).required(true)), ).subcommand( SubCommand::with_name("types") diff --git a/cli/main.rs b/cli/main.rs index 41b04785c..436abe718 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -153,7 +153,7 @@ fn types_command() { println!("{}", content); } -fn prefetch_or_info_command( +fn fetch_or_info_command( flags: DenoFlags, argv: Vec<String>, print_info: bool, @@ -299,12 +299,12 @@ fn main() { ("info", Some(info_match)) => { let file: &str = info_match.value_of("file").unwrap(); argv.extend(vec![file.to_string()]); - prefetch_or_info_command(flags, argv, true); + fetch_or_info_command(flags, argv, true); } - ("prefetch", Some(prefetch_match)) => { - let file: &str = prefetch_match.value_of("file").unwrap(); + ("fetch", Some(fetch_match)) => { + let file: &str = fetch_match.value_of("file").unwrap(); argv.extend(vec![file.to_string()]); - prefetch_or_info_command(flags, argv, false); + fetch_or_info_command(flags, argv, false); } ("fmt", Some(fmt_match)) => { let files: Vec<String> = fmt_match |