mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-19 14:16:36 +02:00
--upload-only and --download-only are mutually exclusive and cannot be used together (#1959)
* --upload-only and --download-only are mutually exclusive and cannot be used together
This commit is contained in:
parent
b7aede6d30
commit
ee2c14c6cc
|
@ -681,6 +681,13 @@ int main(string[] args)
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// --upload-only and --download-only are mutually exclusive and cannot be used together
|
||||||
|
if ((cfg.getValueBool("upload_only")) && (cfg.getValueBool("download_only"))) {
|
||||||
|
// both cannot be true at the same time
|
||||||
|
log.error("ERROR: --upload-only and --download-only are mutually exclusive and cannot be used together.\n");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
// Handle --resync to remove local files
|
// Handle --resync to remove local files
|
||||||
if (cfg.getValueBool("resync")) {
|
if (cfg.getValueBool("resync")) {
|
||||||
log.vdebug("--resync requested");
|
log.vdebug("--resync requested");
|
||||||
|
|
Loading…
Reference in a new issue