summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-01-10 17:40:30 -0500
committerGitHub <noreply@github.com>2024-01-10 22:40:30 +0000
commit70ac06138c18cf643e7e1947dee54f3adff13de3 (patch)
tree73cd8fb7fe51ecbdcf47770b15b27f6fb49b4d05 /cli/args/flags.rs
parent515a34b4de222e35c7ade1b92614d746e73d4c2e (diff)
feat(unstable): fast subset type checking of JSR dependencies (#21873)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs13
1 files changed, 1 insertions, 12 deletions
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<String>,
}
@@ -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::<String>("directory").unwrap(),
token: matches.remove_one("token"),
});
}