resolvectl: for our per-link verbs alternatively accept interface name in -i
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Dec 2018 12:58:34 +0000 (13:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Dec 2018 17:46:23 +0000 (18:46 +0100)
commitd129304919e7ece3f5350b9198383b704733eaf1
treea6645029269507d7eea1e33d816039a1839563ae
parenta77081e30f84bac7ce627d1a760ee6dc6db4354c
resolvectl: for our per-link verbs alternatively accept interface name in -i

it's a bit confusing that we take two interfaces for verbs such as "dns"
or "domain": once after the verb, and once as --interface=. While
there's logic behind it, let's make this least surprising: if either is
specified be happy.

This means "resolvectl -i foo dns" is now equivalent to "resolvectl dns
foo …". Note that this is a tweak only, to minimize surprises. We don't
document this alternative syntax, and shouldn't to keep things simple.
src/resolve/resolvectl.c