Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fix panic when kv: command does not have subcommand #579

Merged
merged 3 commits into from
Sep 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ fn run() -> Result<(), failure::Error> {
"{} Interact with your Workers KV Namespaces",
emoji::KV
))
.setting(AppSettings::SubcommandRequired)
.subcommand(
SubCommand::with_name("create")
.about("Create a new namespace")
Expand Down Expand Up @@ -118,6 +119,7 @@ fn run() -> Result<(), failure::Error> {
"{} Individually manage Workers KV key-value pairs",
emoji::KV
))
.setting(AppSettings::SubcommandRequired)
.arg(
Arg::with_name("binding")
.help("The binding of the namespace this action applies to")
Expand Down Expand Up @@ -239,6 +241,7 @@ fn run() -> Result<(), failure::Error> {
"{} Interact with multiple Workers KV key-value pairs at once",
emoji::KV
))
.setting(AppSettings::SubcommandRequired)
.arg(
Arg::with_name("binding")
.help("The binding of the namespace this action applies to")
Expand Down