userdbctl: make JSON output mode details configurable like in the other tools
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2021 16:25:50 +0000 (17:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2021 20:40:30 +0000 (21:40 +0100)
commite032cbd591decfdd27e5a106ee3b33144865b2dd
tree49d0d96ac6b1e5c08909d3f82a46a5acbc54c0cf
parent0595ff1680e2f283a8223c142a24b0e5fd628274
userdbctl: make JSON output mode details configurable like in the other tools

Let's add --json= with the same parser as in the other tools, and honour
it.
src/userdb/userdbctl.c