From 70ac06138c18cf643e7e1947dee54f3adff13de3 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 10 Jan 2024 17:40:30 -0500 Subject: feat(unstable): fast subset type checking of JSR dependencies (#21873) --- cli/args/flags.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index b5f99ac24..0e4e88764 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -327,7 +327,6 @@ pub struct VendorFlags { #[derive(Clone, Debug, Eq, PartialEq)] pub struct PublishFlags { - pub directory: String, pub token: Option, } @@ -2372,19 +2371,10 @@ Remote modules and multiple modules may also be specified: fn publish_subcommand() -> Command { Command::new("publish") .hide(true) - .about("Unstable preview feature: Publish a package") + .about("Unstable preview feature: Publish the current working directory's package or workspace") // TODO: .long_about() .defer(|cmd| { cmd.arg( - Arg::new("directory") - .help( - "The directory to the package, or workspace of packages to publish", - ) - .default_missing_value(".") - .value_hint(ValueHint::DirPath) - .required(true), - ) - .arg( Arg::new("token") .long("token") .help("The API token to use when publishing. If unset, interactive authentication is be used") @@ -3821,7 +3811,6 @@ fn vendor_parse(flags: &mut Flags, matches: &mut ArgMatches) { fn publish_parse(flags: &mut Flags, matches: &mut ArgMatches) { flags.subcommand = DenoSubcommand::Publish(PublishFlags { - directory: matches.remove_one::("directory").unwrap(), token: matches.remove_one("token"), }); } -- cgit v1.2.3