chiark / gitweb /
systemd-analyze: use argparse instead of getopt
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 3 Nov 2012 17:26:28 +0000 (18:26 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 13 Nov 2012 01:23:02 +0000 (02:23 +0100)
commit0c0271841ab45595f71528c50bcf1904d4b841d5
treeffd3775b9406302447abed4599fdef33bd45b501
parentc94f4b8b53aad25ba364bb79fc53c5b79de28088
systemd-analyze: use argparse instead of getopt

Makes the output way nicer with shorter code. Also brings
systemd-analyze behaviour more in line with other systemd-programs.

Argparse is in Python since 2.6, and is available as a package for
previous versions, if someone is stuck with very old Python.
src/analyze/systemd-analyze