rejeep / commander.el

Emacs command line parser
GNU General Public License v3.0
56 stars 8 forks source link

Do not require file to be present #6

Open rejeep opened 10 years ago

rejeep commented 10 years ago

Evaling this:

(progn
  (require 'commander)
(defun foo ()
  (print "foo"))
(commander
 (command "foo" foo))
(commander-print-usage))

Will result in: f-filename: Wrong type argument: stringp, nil.

This is because the usage information is based on filename if the name directive is not used.