From c62e0e00435579141b9f8738f6db76b4accab928 Mon Sep 17 00:00:00 2001 From: "Miguel A. Cortizo" Date: Mon, 31 Mar 2014 20:31:47 +0200 Subject: Remove -s option, as it is not really needed --- ngxtop/ngxtop.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ngxtop/ngxtop.py b/ngxtop/ngxtop.py index e8a2e69..3355891 100755 --- a/ngxtop/ngxtop.py +++ b/ngxtop/ngxtop.py @@ -29,7 +29,6 @@ Options: -c , --config allow ngxtop to parse nginx config file for log format and location. -i , --filter filter in, records satisfied given expression are processed. -p , --pre-filter in-filter expression to check in pre-parsing phase. - -s, --from-stdin read lines from stdin. -b, --db-dump dump database to disk Examples: @@ -429,7 +428,7 @@ def process(arguments): global processor access_log = arguments['--access-log'] log_format = arguments['--log-format'] - if not access_log and (arguments['--from-stdin'] or not sys.stdin.isatty()): + if not access_log and not sys.stdin.isatty(): access_log = 'stdin' else: if access_log is None or log_format is None: -- cgit v1.2.3