1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-22 15:27:02 +00:00

chasquid-util: switch --configdir into --config_dir and deprecate --configdir

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.
This commit is contained in:
Albert ARIBAUD
2025-03-21 15:02:03 +01:00
committed by Alberto Bertogli
parent e5e7256d3e
commit fa074ec16c
6 changed files with 39 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
# --help
c = ./chasquid-util --configdir=.config --help
c = ./chasquid-util --config_dir=.config --help
c <-
c <- Usage:
c wait 0
@@ -22,3 +22,8 @@ c <~ drop_characters: +"\."
c <~ mail_log_path: +"<syslog>"
c wait 0
# Deprecated --configdir.
c = ./chasquid-util --configdir=.config print-config
c <- Option --configdir is deprecated, use --config_dir instead
c <~ hostname: +".*"
c wait 0