From 96184bc90fb082dcdb1ded95c74f07204065016a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 4 Aug 2013 04:52:32 +0200 Subject: fix argument validation --- format-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format-notify b/format-notify index a0114c7..5f9dddd 100755 --- a/format-notify +++ b/format-notify @@ -19,7 +19,7 @@ def clean_output(status, output): return re.sub(r'^[- :]*', '', output) def main(): - if len(sys.argv) < 4: + if len(sys.argv) < 5: print('Usage: %s (PIPE|--test) SERVICE STATUS OUTPUT' % sys.argv[0]) sys.exit(1) -- cgit v1.2.3-1-g7c22