Merge pull request #17 from apache/obermeier-patch-1
[STREAMPIPES-477] CLI logs service optional
diff --git a/cli/bin/commands/logs b/cli/bin/commands/logs
index 39b378c..b317e66 100755
--- a/cli/bin/commands/logs
+++ b/cli/bin/commands/logs
@@ -40,12 +40,11 @@
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 ;;
*)