blob: 8eeb603d779922523501d1b15af2e0198f765715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
(defpackage #:imbricate.run
(:use #:cl)
(:export #:main))
(in-package :imbricate.run)
(defun print-help ()
(format t "USAGE: imbricate SOURCE-DIR TARGET-DIR SHEET-TITLE~%~%")
(format t " SOURCE-DIR a directory containing png files. Non png files are skipped~%")
(format t " TARGET-DIR a directory where the tilesheet is to be built.~%")
(format t " SHEET-TITLE a name used for this sheet and its meta info~%~%"))
#+ecl
(defun main ()
(print (ext:command-args)))
;; (unless (= 4 (length (ext:command-args)))
;; (print-help)
;; (ext:quit))
;; (destructuring-bind (src target title) (cdr (ext:command-args))
;; (imbricate:imbricate-and-save src target title)
;; (ext:quit)))
#+sbcl
(defun main ()
(unless (= 4 (length sb-ext:*posix-argv*))
(print-help)
(uiop:quit))
(destructuring-bind (src target title) (cdr sb-ext:*posix-argv*)
(imbricate:imbricate-and-save src target title)
(uiop:quit)))
|