Commits

Meikel Brandmeyer committed 440d210

Allow empty rest arguments for cli

Comments (0)

Files changed (1)

server/src/main/clojure/vimclojure/util.clj

            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)