fix for argument handling in 'zrok share reserved' (#740)

This commit is contained in:
Michael Quigley 2024-09-17 11:58:31 -04:00
parent c110f8607d
commit 5a295b91a1
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -36,6 +36,7 @@ func newShareReservedCommand() *shareReservedCommand {
cmd := &cobra.Command{
Use: "reserved <shareToken>",
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")