mirror of
https://github.com/rclone/rclone.git
synced 2026-01-03 00:53:43 +00:00
vfs: factor flags into vfsflags and remove global variables
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/ncw/rclone/cmd"
|
||||
"github.com/ncw/rclone/fs"
|
||||
"github.com/ncw/rclone/vfs"
|
||||
"github.com/ncw/rclone/vfs/vfsflags"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -163,7 +163,7 @@ like this:
|
||||
//flags.BoolVarP(&foreground, "foreground", "", foreground, "Do not detach.")
|
||||
|
||||
// Add in the generic flags
|
||||
vfs.AddFlags(flags)
|
||||
vfsflags.AddFlags(flags)
|
||||
|
||||
return commandDefintion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user