From 9a9f629068b4ffe7173bc92f12080685743dc6ab Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Fri, 5 Aug 2022 09:50:42 -0500 Subject: [add] defhandler macro for app package. --- app/show.lisp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/show.lisp') diff --git a/app/show.lisp b/app/show.lisp index 1ed3493..2270e67 100644 --- a/app/show.lisp +++ b/app/show.lisp @@ -2,11 +2,9 @@ (in-package :oneliners.cli.app) -(defun show/handler (cmd) - (a:if-let (ident - (parse-identifier (first (cli:command-arguments cmd)))) - (ol:print-item-explanation ident) - (cli:print-usage-and-exit cmd t))) +(defhandler show/handler (id) + (ol:print-item-explanation (parse-identifier id))) + (defun show/command () (cli:make-command -- cgit v1.2.3