[systemd-devel] [PATCH 4/4] systemctl: filter shown units by their load state

Lennart Poettering lennart at poettering.net
Tue Jul 10 09:07:33 PDT 2012


On Wed, 06.06.12 16:56, Zbigniew Jędrzejewski-Szmek (zbyszek at in.waw.pl) wrote:

> E.g. systemctl --all -t masked gives the list of masked units.
> 
> The -t/--type option is reused. This is possible because unit types
> and unit load states are called differently, so it is possible to
> distinguish what the user meant. Using the same option also means that
> the interface is user for the user: less options to remember.

OK, merged this two as well.

At first I was a bit concerned that we'd overload the same switch with
two meanings here, but given that we'd be quite stupid if we reused the
same enum values here in different contexts and we so far carefully made
sure not to this should be reasonably safe.

Thanks!

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list