Systemd/src/busctl
Zbigniew Jędrzejewski-Szmek 50f20d1bc2 busctl: verify args early and always print results to stdout
We would print the error sometimes to stdout and sometimes to stderr. It *is*
useful to get the message if one of the names is not found on the bus to
stdout, so that this shows out in the pager. So let's do verification of args
early to catch invalid arguments, and then if we receive an error over the bus
(most likely that the name is not activatable), let's print to stdout so it
gets paged. E.g. 'busctl tree org.freedesktop.systemd1 org.freedesktop.systemd2'
gives a nicely usable output.
2020-05-26 09:07:27 +02:00
..
busctl-introspect.c tree-wide: replace strjoin() with path_join() 2019-06-21 03:26:16 +09:00
busctl-introspect.h tree-wide: remove Lennart's copyright lines 2018-06-14 10:20:20 +02:00
busctl.c busctl: verify args early and always print results to stdout 2020-05-26 09:07:27 +02:00