1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-08 17:51:57 +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

@@ -60,10 +60,14 @@ security level downgrade. Talks to the running chasquid instance.
Parse and print the configuration in a human-readable way.
=item B<-C> or B<--configdir=<path>>
=item B<-C> or B<--config_dir=<path>>
Configuration directory.
=item B<--configdir=<path>>
Deprecated alias for B<--config_dir=<path>>.
=back
=head1 SEE ALSO