From 2ceef99d1a889a08c7341c4aaac056d916d93ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Mon, 11 Sep 2023 23:24:55 +0200 Subject: [PATCH] fixes read only option --- PiwigoDirectorySync/Commands/SyncCommandSettings.cs | 2 +- PiwigoDirectorySync/Properties/launchSettings.json | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/PiwigoDirectorySync/Commands/SyncCommandSettings.cs b/PiwigoDirectorySync/Commands/SyncCommandSettings.cs index 05273d2..8d392cf 100644 --- a/PiwigoDirectorySync/Commands/SyncCommandSettings.cs +++ b/PiwigoDirectorySync/Commands/SyncCommandSettings.cs @@ -6,7 +6,7 @@ namespace PiwigoDirectorySync.Commands; internal class SyncCommandSettings : CommonCommandSettings { [Description("specify this flag to only read from the piwigo server and skip all updates. This might help on initial sync with an existing gallerie to not change any data.")] - [CommandOption("-ro|--read-only")] + [CommandOption("-r|--read-only")] [DefaultValue(false)] public bool ReadOnly { get; set; } } \ No newline at end of file diff --git a/PiwigoDirectorySync/Properties/launchSettings.json b/PiwigoDirectorySync/Properties/launchSettings.json index 0e6594e..98995d6 100644 --- a/PiwigoDirectorySync/Properties/launchSettings.json +++ b/PiwigoDirectorySync/Properties/launchSettings.json @@ -13,6 +13,12 @@ "environmentVariables": { } }, + "SyncAlbumsReadOnly": { + "commandName": "Project", + "commandLineArgs": "sync albums 1 -r", + "environmentVariables": { + } + }, "SyncImages": { "commandName": "Project", "commandLineArgs": "sync images 1", @@ -25,6 +31,12 @@ "environmentVariables": { } }, + "SyncFullReadOnly": { + "commandName": "Project", + "commandLineArgs": "sync full 1 -r", + "environmentVariables": { + } + }, "Download": { "commandName": "Project", "commandLineArgs": "download",