auth proxy: convert options to new style

This commit is contained in:
Nick Craig-Wood committed 2025-04-09 11:12:07 +01:00
1 parent 028316ba5d
commit 6054c4e49d
13 files changed
+43 -40

No files matched your search

+1 -6
View File
@@ -7,12 +7,7 @@ import (
"github.com/spf13/pflag"
)
// Options set by command line flags
var (
Opt = proxy.DefaultOpt
)
// AddFlags adds the non filing system specific flags to the command
func AddFlags(flagSet *pflag.FlagSet) {
flags.StringVarP(flagSet, &Opt.AuthProxy, "auth-proxy", "", Opt.AuthProxy, "A program to use to create the backend from the auth", "")
flags.AddFlagsFromOptions(flagSet, "", proxy.OptionsInfo)
}