]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolvectl: change syntax to use verb_dispatch()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Apr 2018 01:44:51 +0000 (10:44 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 Apr 2018 18:24:35 +0000 (03:24 +0900)
commita7a4c60a253a181385764bcb542906a312b68fe9
tree28d32ab363f6fd8015ba774db3483c6e70c30ad8
parentc2e84cab3afb09e726be40ce80b6ce6129c8af32
resolvectl: change syntax to use verb_dispatch()

This makes `resolvectl` use the verb style command line, e.g.,
`resolvectl status` or `resolvectl tlsa tcp fedoraproject.org:443`.
For compatibility, if the invocation name is `systemd-resolve`,
then it accepts the old syntax, e.g. `systemd-resolve --status`.
src/resolve/resolvconf-compat.c
src/resolve/resolvectl.c
src/resolve/resolvectl.h