From 50209cd879ab4253c13e6d80cdf32766a226bc66 Mon Sep 17 00:00:00 2001 From: Keepers Date: Fri, 6 Jan 2023 09:55:54 -0700 Subject: [PATCH] use stringslice for users in onedrive (#2042) ## Type of change - [x] :bug: Bugfix ## Issue(s) * #2041 ## Test Plan - [x] :muscle: Manual --- CHANGELOG.md | 5 +++-- src/cli/backup/onedrive.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28c4d2de3..b93597507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,8 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Fixed issue where repository connect progress bar was clobbering backup/restore operation output. -- Fixed issue where a `backup create exchange` produced one backup record per data type. +- Issue where repository connect progress bar was clobbering backup/restore operation output. +- Issue where a `backup create exchange` produced one backup record per data type. +- Specifying multiple users in a onedrive backup (ex: `--user a,b,c`) now properly delimits the input along the commas. ### Known Issues diff --git a/src/cli/backup/onedrive.go b/src/cli/backup/onedrive.go index e94338cfd..29c18d7e7 100644 --- a/src/cli/backup/onedrive.go +++ b/src/cli/backup/onedrive.go @@ -83,7 +83,7 @@ func addOneDriveCommands(cmd *cobra.Command) *cobra.Command { c.Use = c.Use + " " + oneDriveServiceCommandCreateUseSuffix c.Example = oneDriveServiceCommandCreateExamples - fs.StringArrayVar(&user, + fs.StringSliceVar(&user, utils.UserFN, nil, "Backup OneDrive data by user ID; accepts '"+utils.Wildcard+"' to select all users. (required)") options.AddOperationFlags(c)