mirror of
https://github.com/openziti/zrok.git
synced 2025-05-02 07:04:27 +02:00
fix for argument handling in 'zrok share reserved' (#740)
This commit is contained in:
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user