chiark / gitweb /
systemd: add --version option
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Jul 2012 05:31:47 +0000 (07:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 17 Jul 2012 14:34:23 +0000 (16:34 +0200)
commit9ba0bc4e0f3cc606635547c6215f5af8982851df
treed6a31d2a6ff8e8dee0cfa5f3fd55d7bf858f7858
parent02b89260ce14bfae9167b7ca64bb196592b3573d
systemd: add --version option

systemd --version mirrors systemctl --version:

$ ./systemd --version
systemd 186
other
+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP

This information can be retrieved by other means (systemctl, etc.),
but it's easier for a newbie if 'systemd --version' says something
useful. And 'systemd --help' is already there, so let's complement
that with '--version'.
man/systemd.xml
src/core/main.c