forked from TrueCloudLab/rclone
config: remove explicit setting of required property to true for options with a default value
See #5551
This commit is contained in:
parent
994b501188
commit
bd4bbed592
3 changed files with 15 additions and 23 deletions
|
@ -34,18 +34,15 @@ func init() {
|
||||||
Name: "endpoint",
|
Name: "endpoint",
|
||||||
Help: "The Koofr API endpoint to use.",
|
Help: "The Koofr API endpoint to use.",
|
||||||
Default: "https://app.koofr.net",
|
Default: "https://app.koofr.net",
|
||||||
Required: true,
|
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "mountid",
|
Name: "mountid",
|
||||||
Help: "Mount ID of the mount to use.\n\nIf omitted, the primary mount is used.",
|
Help: "Mount ID of the mount to use.\n\nIf omitted, the primary mount is used.",
|
||||||
Default: "",
|
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "setmtime",
|
Name: "setmtime",
|
||||||
Help: "Does the backend support setting modification time.\n\nSet this to false if you use a mount ID that points to a Dropbox or Amazon Drive backend.",
|
Help: "Does the backend support setting modification time.\n\nSet this to false if you use a mount ID that points to a Dropbox or Amazon Drive backend.",
|
||||||
Default: true,
|
Default: true,
|
||||||
Required: true,
|
|
||||||
Advanced: true,
|
Advanced: true,
|
||||||
}, {
|
}, {
|
||||||
Name: "user",
|
Name: "user",
|
||||||
|
|
|
@ -86,7 +86,6 @@ func init() {
|
||||||
{
|
{
|
||||||
Name: fs.ConfigProvider,
|
Name: fs.ConfigProvider,
|
||||||
Help: "Choose an authentication method.",
|
Help: "Choose an authentication method.",
|
||||||
Required: true,
|
|
||||||
Default: existingProvider,
|
Default: existingProvider,
|
||||||
Examples: []fs.OptionExample{{
|
Examples: []fs.OptionExample{{
|
||||||
Value: "existing",
|
Value: "existing",
|
||||||
|
|
|
@ -35,22 +35,18 @@ func init() {
|
||||||
}, {
|
}, {
|
||||||
Name: "action_policy",
|
Name: "action_policy",
|
||||||
Help: "Policy to choose upstream on ACTION category.",
|
Help: "Policy to choose upstream on ACTION category.",
|
||||||
Required: true,
|
|
||||||
Default: "epall",
|
Default: "epall",
|
||||||
}, {
|
}, {
|
||||||
Name: "create_policy",
|
Name: "create_policy",
|
||||||
Help: "Policy to choose upstream on CREATE category.",
|
Help: "Policy to choose upstream on CREATE category.",
|
||||||
Required: true,
|
|
||||||
Default: "epmfs",
|
Default: "epmfs",
|
||||||
}, {
|
}, {
|
||||||
Name: "search_policy",
|
Name: "search_policy",
|
||||||
Help: "Policy to choose upstream on SEARCH category.",
|
Help: "Policy to choose upstream on SEARCH category.",
|
||||||
Required: true,
|
|
||||||
Default: "ff",
|
Default: "ff",
|
||||||
}, {
|
}, {
|
||||||
Name: "cache_time",
|
Name: "cache_time",
|
||||||
Help: "Cache time of usage and free space (in seconds).\n\nThis option is only useful when a path preserving policy is used.",
|
Help: "Cache time of usage and free space (in seconds).\n\nThis option is only useful when a path preserving policy is used.",
|
||||||
Required: true,
|
|
||||||
Default: 120,
|
Default: 120,
|
||||||
}},
|
}},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue