diff options
-rwxr-xr-x | format-notify | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/format-notify b/format-notify index d34fe67..0356587 100755 --- a/format-notify +++ b/format-notify @@ -19,6 +19,10 @@ def clean_output(status, output): return re.sub(r'^[- :]*', '', output) def main(): + if len(sys.argv) < 4: + print('Usage: %s (PIPE|--test) SERVICE STATUS OUTPUT' % sys.argv[0]) + sys.exit(1) + file = sys.argv.pop(1) service = sys.argv.pop(1) status = sys.argv.pop(1) |