From e55ea3f88736d82eea576b231a429733241eb85c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 2 Aug 2015 14:22:10 -0400 Subject: [PATCH] systemctl: add --value option With this option, systemctl will only print the rhs in show: $ systemctl show -p Wants,After elogind-journald --value elogind-journald.socket ... elogind-journald-dev-log.socket ... This is useful in scripts, because the need to call awk or similar is removed. --- src/login/loginctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/login/loginctl.c b/src/login/loginctl.c index 6812ec5d4..35310cf57 100644 --- a/src/login/loginctl.c +++ b/src/login/loginctl.c @@ -793,7 +793,7 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte break; } - r = bus_print_property(name, m, arg_all); + r = bus_print_property(name, m, false, arg_all); if (r < 0) return bus_log_parse_error(r); -- 2.30.2