fix message when just `ros dump`.

This commit is contained in:
SANO Masatoshi 2017-05-07 16:17:31 +09:00
parent 70663c5844
commit 6a41b99f99

View file

@ -91,14 +91,18 @@ exec ros -- $0 "$@"
#+ccl "ccl"
#+cmucl "cmucl"
(remove #\Space (string-downcase (lisp-implementation-type)))))))
(if (and r module)
(let ((func (find (first r) (funcall module :query *subcmds*)
:test 'equal
:key 'string-downcase)))
(if func
(funcall func module (rest r))
(format *error-output* "'~A' is not a valid command for '~A' subcommand for ~A ~%"
(first r) (pathname-name *load-pathname*) (lisp-implementation-type))))
(format *error-output* "'~A' is not supported for ~A ~%"
(pathname-name *load-pathname*) (lisp-implementation-type)))))
(cond
((and module r)
(let ((func (find (first r) (funcall module :query *subcmds*)
:test 'equal
:key 'string-downcase)))
(if func
(funcall func module (rest r))
(format *error-output* "'~A' is not a valid command for '~A' subcommand for ~A ~%"
(first r) (pathname-name *load-pathname*) (lisp-implementation-type)))))
(module
(format *error-output* "Possible subcmd~%~%~{~(~A~)~%~}" (funcall module :query *subcmds*)))
(t
(format *error-output* "'~A' is not supported for ~A ~%"
(pathname-name *load-pathname*) (lisp-implementation-type))))))
;;; vim: set ft=lisp lisp: