diff options
author | Alexander Sulfrian <alex@spline.inf.fu-berlin.de> | 2013-08-04 04:52:32 +0200 |
---|---|---|
committer | root <root@vm-monitoring.spline.inf.fu-berlin.de> | 2013-08-04 04:52:32 +0200 |
commit | 96184bc90fb082dcdb1ded95c74f07204065016a (patch) | |
tree | f07cbde1495bf37b1df602c7f20bacc4eeb8075b | |
parent | adef9502cb9562ceb63ad761abecde6bef8fdba4 (diff) | |
download | format-notify-96184bc90fb082dcdb1ded95c74f07204065016a.tar.gz format-notify-96184bc90fb082dcdb1ded95c74f07204065016a.tar.bz2 format-notify-96184bc90fb082dcdb1ded95c74f07204065016a.zip |
fix argument validation
-rwxr-xr-x | format-notify | 2 |
1 files changed, 1 insertions, 1 deletions
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) |