1
1
mirror of https://github.com/openziti/zrok.git synced 2025-07-05 17:00:40 +02:00

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

This commit is contained in:
Michael Quigley
2024-09-17 11:58:31 -04:00
parent c110f8607d
commit 5a295b91a1

@ -36,6 +36,7 @@ func newShareReservedCommand() *shareReservedCommand {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "reserved <shareToken>", Use: "reserved <shareToken>",
Short: "Start a backend for a reserved share", Short: "Start a backend for a reserved share",
Args: cobra.ExactArgs(1),
} }
command := &shareReservedCommand{cmd: cmd} command := &shareReservedCommand{cmd: cmd}
cmd.Flags().StringVar(&command.overrideEndpoint, "override-endpoint", "", "Override the stored target endpoint with a replacement") cmd.Flags().StringVar(&command.overrideEndpoint, "override-endpoint", "", "Override the stored target endpoint with a replacement")