diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-08-02 14:22:10 -0400 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:12:57 +0200 |
commit | e55ea3f88736d82eea576b231a429733241eb85c (patch) | |
tree | 58058b709b9c763b705eb2d464eb1d781959d1d4 /src | |
parent | a102733fe95f1e374daf08c1bab98d0e1f864f74 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/login/loginctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |