]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolve-tool.c
cmdline: for new tools avoid introduce new negative switches, and properly align...
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Aug 2014 22:15:05 +0000 (00:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Aug 2014 22:18:14 +0000 (00:18 +0200)
commitdad29dff1925a114e20d4eb7b47fca23c4f25fd7
treee48b3cec55288b8fced0cf6076ac86e487011f58
parentf9ffbca2fb1ba7a7854d83439a4644590be0d9e1
cmdline: for new tools avoid introduce new negative switches, and properly align --help texts

Negative switches are a bad un-normalized thing. We alerady have some,
but we should try harder to avoid intrdoucing new ones.

Hence, instead of adding two switches:

        --foobar
        --no-foobar

Let's instead use the syntax

        --foobar
        --foobar=yes
        --foobar=no

Where the first two are equivalent. The boolean argument is parsed
following the usual rules.

Change all new negative switches this way.

This patch also properly aligns the --help table, so that single char
switches always get a column separate of the long switches.
src/analyze/analyze.c
src/journal-remote/journal-remote.c
src/journal-remote/journal-upload.c
src/resolve-host/resolve-host.c