CLI logs service name optional
@@ -40,12 +40,11 @@ while [[ "$#" -gt 0 ]]; do
case $1 in
-f|--follow)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
- follow=true
svc=$2
- shift 2
- else
- fatal "Argument for $1 is missing" >&2
+ shift 1
fi
+ follow=true
+ shift 1
;;
-*|--*=) fatal "Unsupported flag $1, see 'streampipes ${0##*/} --help'" >&2 ;;
*)
