diff --git a/ufwd b/ufwd index d688b96..b0dfc14 100755 --- a/ufwd +++ b/ufwd @@ -6,9 +6,6 @@ if ! [[ "$XDG_RUNTIME_DIR" ]]; then XDG_RUNTIME_DIR="/run/user/$UID" fi -# Defaults -cfg_scan_delay='30' - msg() { printf '%s\n' "$*"; } err() { echo "$*" >&2; } @@ -46,22 +43,13 @@ main() { while (( $# )); do case "$1" in (--help|-h) usage; return 0;; + (--notify|-n) flag_enable_notifications=1;; + (--clipboard|-c) flag_enable_clipboard=1;; (--workdir|-d) cfg_workdir+=( "$2" ); shift;; - (--scan-delay|-D) cfg_scan_delay="$2"; shift;; - - (--notify|-n) flag_enable_notifications=1;; - - (--clipboard|-c) flag_enable_clipboard=1;; - (--) shift; break;; - (-*) - err "Unknown key: $1" - usage - return 1 - ;; - + (-*) err "Unknown key: $1"; usage; return 1;; (*) break;; esac shift