simplify assertion

This commit is contained in:
Daniel Barlow 2024-03-04 23:13:06 +00:00
parent ffe9603c39
commit 38ed91f641

View file

@ -34,9 +34,8 @@
(os.exit 0)))) (os.exit 0))))
(let [parameters (let [parameters
(or (assert (parse-args arg)
(parse-args arg) (.. "Usage: " (. arg 0) " [-v] ifname [present|up|running]"))]
(assert false (.. "Usage: " (. arg 0) " [-v] ifname [present|up|running]")))]
(when parameters.verbose (when parameters.verbose
(print (.. (. arg 0) ": waiting for " (print (.. (. arg 0) ": waiting for "
parameters.link " to be " parameters.expecting))) parameters.link " to be " parameters.expecting)))