cgls: add --unit to show units
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 1 Feb 2017 19:52:46 +0000 (14:52 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 03:30:03 +0000 (22:30 -0500)
commitd9855d87eb18ed6f5161904c38fc19c075a7d89a
treea540196b22c13bb19b1051356d1b99292390ea48
parentbc06be753346784e19151814b5b9c01c624317f2
cgls: add --unit to show units

$ systemd-cgls -u systemd-journald.service machine.slice

I opted for a "global" switch, instead of modifying the behaviour of just one
argument. It seem to be a more useful setting, since usually one will want to
query one or more units, and not mix unit names with paths.

Closes #5156.
man/systemd-cgls.xml
src/cgls/cgls.c