]> git.ipfire.org Git - thirdparty/pdns.git/commit
Try harder matching command names in pdnsutil. 15607/head
authorMiod Vallat <miod.vallat@powerdns.com>
Wed, 28 May 2025 10:10:43 +0000 (12:10 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Wed, 28 May 2025 10:57:50 +0000 (12:57 +0200)
commitaf8bf6d593409e370757ae61acbdba87dcbe64be
tree01565f03e3ceb2c6adf7b5a96ecdee616555c373
parentdea9fd45062b465e69e9bd3c406a7449676c6368
Try harder matching command names in pdnsutil.

We would like to eventually move towards a consistent naming of the pdnsutil
commands, in the form:
  pdnsutil <object (a noun)> <action (a verb)> <arguments>
with no dash between the object and the action.

However the existing commands are currently in the form action-object.
This change attempts to recognize both "object-action" and "object action"
and rewrites them as "action-object" to match the current command set, as
a first step.
pdns/pdnsutil.cc