diff --git a/cli/flags.rs b/cli/flags.rs index 8b95aefae5..a4cbd21330 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -338,6 +338,29 @@ Demonstrates breaking the input up by space delimiter instead of by lines: .help("Set delimiter, defaults to newline") .takes_value(true), ).arg(Arg::with_name("code").takes_value(true).required(true)), + ).subcommand( + SubCommand::with_name("install") + .settings(&[ + AppSettings::DisableVersion, + AppSettings::DisableHelpSubcommand, + AppSettings::AllowExternalSubcommands, + AppSettings::SubcommandRequired, + ]) + .about("Install script as executable") + .long_about( +"Automatically downloads deno_installer dependencies on first run. + + deno install file_server https://deno.land/std/http/file_server.ts --allow-net --allow-read", + ).arg( + Arg::with_name("exe_name") + .help("Executable name") + .required(true), + ).subcommand( + // this is a fake subcommand - it's used in conjunction with + // AppSettings:AllowExternalSubcommand to treat it as an + // entry point script + SubCommand::with_name("