Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Commit

Permalink
Don't display NIL if documentation is not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Aug 4, 2014
1 parent 2e24ceb commit 96d33ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/install.lisp
Expand Up @@ -322,7 +322,8 @@ Example:
(if (eq arglist :not-available)
""
arglist)
(split-sequence #\Newline (documentation fn 'function))))
(and (documentation fn 'function)
(split-sequence #\Newline (documentation fn 'function)))))
(version-message
(format nil "~&~(~A~) in ~(~A~)~:[~;~:* ~A~]~%Generated by Shelly ~A with ~A ~A at ~A~%"
function-name package-name
Expand Down
6 changes: 4 additions & 2 deletions src/shelly.lisp
Expand Up @@ -45,7 +45,8 @@ If `command' is specified, its usage will be displayed."
(if (eq arglist :not-available)
""
arglist)
(split-sequence #\Newline (documentation parsed-command 'function))))
(and (documentation parsed-command 'function)
(split-sequence #\Newline (documentation parsed-command 'function)))))
(progn
(format t "~&Built-In Commands:~%")
(print-package-commands :shelly)
Expand All @@ -59,7 +60,8 @@ If `command' is specified, its usage will be displayed."
(if (eq arglist :not-available)
""
arglist)
(split-sequence #\Newline (documentation symbol 'function)))))))))
(and (documentation symbol 'function)
(split-sequence #\Newline (documentation symbol 'function))))))))))
(values))

(defun available-versions ()
Expand Down
3 changes: 2 additions & 1 deletion src/util.lisp
Expand Up @@ -181,7 +181,8 @@
(if (eq arglist :not-available)
""
arglist)
(split-sequence #\Newline (documentation symbol 'function)))))))
(and (documentation symbol 'function)
(split-sequence #\Newline (documentation symbol 'function))))))))

(defun terminate (&optional (status 0) format-string &rest format-arguments)
(declare (ignorable status))
Expand Down

0 comments on commit 96d33ba

Please sign in to comment.