From 7a7e96787423e3b81209a943effbb1919fd858d9 Mon Sep 17 00:00:00 2001 From: Thiago Freitas Date: Sun, 27 Nov 2022 02:03:56 -0300 Subject: [PATCH] fix(cmd/remote-to-local) remote-to-local escaping issue --- cmd/remote-to-local/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/remote-to-local/main.go b/cmd/remote-to-local/main.go index 7f72927..1a95133 100644 --- a/cmd/remote-to-local/main.go +++ b/cmd/remote-to-local/main.go @@ -29,8 +29,8 @@ func NewRestoreCommand() *cobra.Command { command.Flags().BoolVarP(&noTemplate, "no-template", "", false, "Disables rendering of the rclone configuration file") command.Flags().StringVarP(&app.srcPath, "src", "s", "./", "Source path on remote storage") command.Flags().StringVarP(&app.destLocalPath, "dst", "d", "/", "Local target path") - command.Flags().StringSliceVarP(&app.remoteParams, "param", "p", []string{}, "List of key=value settings for remote e.g. -p 'type=s3' -p 'provider=Minio' -p 'access_key_id=AKIAIOSFODNN7EXAMPLE'") - command.Flags().StringSliceVarP(&app.encryptionParams, "enc-param", "e", []string{}, "List of key=value settings for remote e.g. -p 'remote=remote:testbucket' -p 'password=xxxxxxxx'") + command.Flags().StringArrayVarP(&app.remoteParams, "param", "p", []string{}, "List of key=value settings for remote e.g. -p 'type=s3' -p 'provider=Minio' -p 'access_key_id=AKIAIOSFODNN7EXAMPLE'") + command.Flags().StringArrayVarP(&app.encryptionParams, "enc-param", "e", []string{}, "List of key=value settings for remote e.g. -p 'remote=remote:testbucket' -p 'password=xxxxxxxx'") command.Flags().StringVarP(&app.SchedulerExpression, "schedule", "", "", "Set to a valid crontab-like expression to schedule synchronization periodically") command.Flags().BoolVarP(&noDelete, "no-delete", "x", true, "Don't delete files in local filesystem (may be dangerous if wrong path specified)") command.Flags().BoolVarP(&app.forceCleanUp, "force-delete-local-dir", "n", true, "Force delete local files that are not present on remote")