Barf on invalid commands
This commit is contained in:
parent
396a5dc26b
commit
d67e376c73
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ STR
|
|||
when "archive" then archive(args[1], args[2])
|
||||
when "tweet" then tweet(args[1], args[2])
|
||||
when "jsonify" then jsonify(args[1..-1])
|
||||
else
|
||||
log usage
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue