Fix cli command restore-repo: "units" should be parsed as cli.String (#20183) (#20187)

This commit is contained in:
wxiaoguang authored and GitHub committed 2022-07-01 17:16:59 +02:00
1 parent 3e4fe009e7
commit bf43db10a9
3 files changed
+15 -7

No files matched your search

+1 -1
View File
@@ -590,7 +590,7 @@ func updateOptionsUnits(opts *base.MigrateOptions, units []string) error {
opts.ReleaseAssets = true
} else {
for _, unit := range units {
switch strings.ToLower(unit) {
switch strings.ToLower(strings.TrimSpace(unit)) {
case "":
continue
case "wiki":