2018-03-05 19:44:16 +08:00
|
|
|
// Package rcflags implements command line flags to set up the remote control
|
|
|
|
package rcflags
|
|
|
|
|
|
|
|
import (
|
2019-07-29 01:47:38 +08:00
|
|
|
"github.com/rclone/rclone/fs/config/flags"
|
|
|
|
"github.com/rclone/rclone/fs/rc"
|
2018-03-05 19:44:16 +08:00
|
|
|
"github.com/spf13/pflag"
|
|
|
|
)
|
|
|
|
|
2023-03-23 20:04:17 +08:00
|
|
|
// FlagPrefix is the prefix used to uniquely identify command line flags.
|
|
|
|
const FlagPrefix = "rc-"
|
|
|
|
|
2018-03-05 19:44:16 +08:00
|
|
|
// AddFlags adds the remote control flags to the flagSet
|
2023-03-23 20:04:17 +08:00
|
|
|
func AddFlags(flagSet *pflag.FlagSet) {
|
2024-07-04 17:47:05 +08:00
|
|
|
flags.AddFlagsFromOptions(flagSet, "", rc.OptionsInfo)
|
2018-03-05 19:44:16 +08:00
|
|
|
}
|