Skip to content

Commit

Permalink
Allow empty rest arguments for cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kotarak committed Jul 26, 2012
1 parent 8a1a00e commit da830f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/src/main/clojure/vimclojure/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,7 @@
argmap (hash-map)]
(let [arg (first args)]
(cond
(empty? args) (if-not rest-arg
(thunk argmap)
(throw
(Exception. "Missing command line arguments")))
(empty? args) (thunk argmap)

(some #{arg} ["-h" "--help" "-?"])
(print-usage description specs)
Expand Down

0 comments on commit da830f4

Please sign in to comment.