]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgls: allow --unit, --user-unit to take optional argument 5202/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 03:24:41 +0000 (22:24 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 2 Feb 2017 03:32:19 +0000 (22:32 -0500)
commit256c1eba6b9eb31e2e9aa5cf82ed38eb441a6a51
treee538cbce22643688be9b84464ff4bbc0d1f0b2ce
parente7aa3f5014d601b91c7bf8f3a20d5b5c1a0a5908
cgls: allow --unit, --user-unit to take optional argument

The following are all equivalent:
--unit foo.service bar.service
--unit=foo.service bar.service
--unit=foo.service --unit=bar.service
foo.service bar.service --unit

Similarly for --user-unit.

The only case that doesn't work well is when --unit and --user-unit are mixed:
  --unit=foo.service --user-unit=bar.service
We'll treat both names as user units. I think this is OK.
src/cgls/cgls.c