From 5a295b91a18138b59780e9321ca74b1b51a1b527 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 17 Sep 2024 11:58:31 -0400 Subject: [PATCH] fix for argument handling in 'zrok share reserved' (#740) --- cmd/zrok/shareReserved.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/zrok/shareReserved.go b/cmd/zrok/shareReserved.go index 16e577c3..0d5688e4 100644 --- a/cmd/zrok/shareReserved.go +++ b/cmd/zrok/shareReserved.go @@ -36,6 +36,7 @@ func newShareReservedCommand() *shareReservedCommand { cmd := &cobra.Command{ Use: "reserved ", Short: "Start a backend for a reserved share", + Args: cobra.ExactArgs(1), } command := &shareReservedCommand{cmd: cmd} cmd.Flags().StringVar(&command.overrideEndpoint, "override-endpoint", "", "Override the stored target endpoint with a replacement")