mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
17 lines
466 B
Go
17 lines
466 B
Go
// Package rcflags implements command line flags to set up the remote control
|
|
package rcflags
|
|
|
|
import (
|
|
"github.com/rclone/rclone/fs/config/flags"
|
|
"github.com/rclone/rclone/fs/rc"
|
|
"github.com/spf13/pflag"
|
|
)
|
|
|
|
// FlagPrefix is the prefix used to uniquely identify command line flags.
|
|
const FlagPrefix = "rc-"
|
|
|
|
// AddFlags adds the remote control flags to the flagSet
|
|
func AddFlags(flagSet *pflag.FlagSet) {
|
|
flags.AddFlagsFromOptions(flagSet, "", rc.OptionsInfo)
|
|
}
|