Added --errors-only switch

This commit is contained in:
deajan 2016-11-14 17:11:50 +01:00
parent a122cc9b2a
commit 10f5fa9c0f
1 changed files with 6 additions and 2 deletions

View File

@ -4,7 +4,7 @@ PROGRAM="osync" # Rsync based two way sync engine with fault tolerance
AUTHOR="(C) 2013-2016 by Orsiris de Jong"
CONTACT="http://www.netpower.fr/osync - ozy@netpower.fr"
PROGRAM_VERSION=1.2-beta2
PROGRAM_BUILD=2016111302
PROGRAM_BUILD=2016111401
IS_STABLE=no
# Execution order #__WITH_PARANOIA_DEBUG
@ -1877,7 +1877,7 @@ function Usage {
echo "[OPTIONS]"
echo "--dry Will run osync without actually doing anything; just testing"
echo "--silent Will run osync without any output to stdout, used for cron jobs"
echo "--erronly Output only errors"
echo "--errors-only Output only errors (can be combined with silent or verbose)"
echo "--verbose Increases output"
echo "--stats Adds rsync transfer statistics to verbose output"
echo "--partial Allows rsync to keep partial downloads that can be resumed later (experimental)"
@ -2042,6 +2042,10 @@ for i in "$@"; do
--no-locks)
_NOLOCKS=true
;;
--only-errors)
_LOGGER_STDERR=True
_LOGGER_ERR_ONLY=True
;;
*)
if [ $first == "0" ]; then
Logger "Unknown option '$i'" "CRITICAL"