mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
fs: Add Exclusive parameter to Option to choose Examples only #3455
This commit is contained in:
@@ -161,6 +161,7 @@ func ConfigConfirm(state string, Default bool, name string, help string) (*Confi
|
||||
Value: "false",
|
||||
Help: "No",
|
||||
}},
|
||||
Exclusive: true,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
@@ -182,9 +183,10 @@ func ConfigChooseFixed(state string, name string, help string, items []OptionExa
|
||||
choose := &ConfigOut{
|
||||
State: state,
|
||||
Option: &Option{
|
||||
Name: name,
|
||||
Help: help,
|
||||
Examples: items,
|
||||
Name: name,
|
||||
Help: help,
|
||||
Examples: items,
|
||||
Exclusive: true,
|
||||
},
|
||||
}
|
||||
choose.Option.Default = choose.Option.Examples[0].Value
|
||||
|
||||
Reference in New Issue
Block a user