aboutsummaryrefslogtreecommitdiff
path: root/app/clip.lisp
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-08-05 09:50:42 -0500
committerColin Okay <colin@cicadas.surf>2022-08-05 09:50:42 -0500
commit9a9f629068b4ffe7173bc92f12080685743dc6ab (patch)
treed62379dc9eabadfc6c7c0f907e16894511376c00 /app/clip.lisp
parentf116178dcf8b450c76400e2a0fbd2991f2c227b4 (diff)
[add] defhandler macro for app package.
Diffstat (limited to 'app/clip.lisp')
-rw-r--r--app/clip.lisp8
1 files changed, 2 insertions, 6 deletions
diff --git a/app/clip.lisp b/app/clip.lisp
index 922cacc..ad79589 100644
--- a/app/clip.lisp
+++ b/app/clip.lisp
@@ -2,12 +2,8 @@
(in-package :oneliners.cli.app)
-(defun clip/handler (cmd)
- (a:if-let (args (cli:command-arguments cmd))
- (ol::run-item
- (parse-identifier (first args)) (rest args)
- :force-clip t)
- (cli:print-usage-and-exit cmd t)))
+(defhandler clip/handler (id . args)
+ (ol:run-item (parse-identifier id) args :force-clip t))
(defun clip/command ()
(cli:make-command