Restore --list-encodings option.

It got broken, somehow. Let's move it further up the chain of command line
option processing.

Fixed #909.
This commit is contained in:
Dimitri Fontaine 2019-02-15 21:18:38 +01:00
parent 69d9b381dc
commit 2e6a941d25

View File

@ -225,6 +225,11 @@
(let ((*self-upgraded-already* t))
(main argv))))
;; --list-encodings, -E
(when list-encodings
(show-encodings)
(uiop:quit +os-code-success+))
;; First care about the root directory where pgloader is supposed to
;; output its data logs and reject files
(let ((root-dir-truename (or (probe-file root-dir)
@ -268,10 +273,6 @@
(usage argv)
(uiop:quit +os-code-error-usage+))
(when list-encodings
(show-encodings)
(uiop:quit +os-code-success+))
(when upgrade-config
(loop for filename in arguments
do