mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
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:
parent
69d9b381dc
commit
2e6a941d25
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user