There's an inconsistency between chasquid (which uses `--config_dir`) and chasquid-util (which uses `--configdir`). That is prone to cause confusion, so this patch renames chasquid-util's flag, leaving the old one as deprecated with a warning message. Closes https://github.com/albertito/chasquid/pull/60. Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Added test case for the deprecated option, adjusted commit message.
22 lines
851 B
Plaintext
22 lines
851 B
Plaintext
# Unknown argument.
|
|
c = ./chasquid-util --config_dir=.config blahrarghar
|
|
c <- Unknown argument "blahrarghar"
|
|
c wait 1
|
|
|
|
c = ./chasquid-util --config_dir=.nonono check-userdb
|
|
c <- Error: file ".nonono/domains//users" does not exist
|
|
c wait 1
|
|
|
|
c = ./chasquid-util --config_dir=.nonono print-config
|
|
c <- Error loading config: failed to read config at ".nonono/chasquid.conf": open .nonono/chasquid.conf: no such file or directory
|
|
c wait 1
|
|
|
|
c = ./chasquid-util --config_dir=.nonono aliases-resolve email@addr
|
|
c <- Error loading config: failed to read config at ".nonono/chasquid.conf": open .nonono/chasquid.conf: no such file or directory
|
|
c wait 1
|
|
|
|
c = ./chasquid-util --config_dir=.nonono domaininfo-remove domain
|
|
c <- Error loading config: failed to read config at ".nonono/chasquid.conf": open .nonono/chasquid.conf: no such file or directory
|
|
c wait 1
|
|
|