2019-07-31 21:20:19 +00:00
|
|
|
// Package proxyflags implements command line flags to set up a proxy
|
|
|
|
package proxyflags
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/rclone/rclone/cmd/serve/proxy"
|
|
|
|
"github.com/rclone/rclone/fs/config/flags"
|
|
|
|
"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) {
|
2021-08-16 09:30:01 +00:00
|
|
|
flags.StringVarP(flagSet, &Opt.AuthProxy, "auth-proxy", "", Opt.AuthProxy, "A program to use to create the backend from the auth")
|
2019-07-31 21:20:19 +00:00
|
|
|
}
|