fixes read only option

This commit is contained in:
Philipp Häfelfinger 2023-09-11 23:24:55 +02:00
parent 092738d767
commit 2ceef99d1a
2 changed files with 13 additions and 1 deletions

View File

@ -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; }
}

View File

@ -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",