Skip to content

Commit

Permalink
Merge pull request snabbco#1093 from dpino/alarms-fixes
Browse files Browse the repository at this point in the history
Fix runtime error on running snabb alarms
  • Loading branch information
dpino authored Jun 13, 2018
2 parents 0e6beac + 0e306ee commit bd216c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/program/alarms/README
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Usage:
snabb alarms compress
snabb alarms get-state
snabb alarms listen
snabb alarms purge
snabb alarms set-operator-state

Expand Down
2 changes: 1 addition & 1 deletion src/program/alarms/listen/listen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local function parse_command_line(args)
local handlers = {}
function handlers.h() show_usage(0) end
args = lib.dogetopt(args, handlers, "h", {help="h"})
if #args ~= 1 then show_usage(1, msg) end
if #args ~= 1 then show_usage(1) end
return unpack(args)
end

Expand Down

0 comments on commit bd216c2

Please sign in to comment.