]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: move --purge to command section in --help text where it belongs
authorLennart Poettering <lennart@poettering.net>
Tue, 18 Jun 2024 07:56:15 +0000 (09:56 +0200)
committerLuca Boccassi <bluca@debian.org>
Tue, 18 Jun 2024 13:45:59 +0000 (14:45 +0100)
Also, make contrast between --remove and --purge clearer: one deletes
files marked for deletion, the other deletes files marked for creation.

src/tmpfiles/tmpfiles.c

index 9895e946964499a79da4b906d8dbf7019b5aee7d..80aa274f209061d351a6616fc47620a1e1b62ca1 100644 (file)
@@ -4148,7 +4148,9 @@ static int help(void) {
                "\n%3$sCommands:%4$s\n"
                "     --create               Create files and directories\n"
                "     --clean                Clean up files and directories\n"
-               "     --remove               Remove files and directories\n"
+               "     --remove               Remove files and directories marked for removal\n"
+               "     --purge                Delete files and directories marked for creation in\n"
+               "                            specified configuration files (careful!)\n"
                "  -h --help                 Show this help\n"
                "     --version              Show package version\n"
                "\n%3$sOptions:%4$s\n"
@@ -4157,7 +4159,6 @@ static int help(void) {
                "     --tldr                 Show non-comment parts of configuration\n"
                "     --boot                 Execute actions only safe at boot\n"
                "     --graceful             Quietly ignore unknown users or groups\n"
-               "     --purge                Delete all files owned by the configuration files\n"
                "     --prefix=PATH          Only apply rules with the specified prefix\n"
                "     --exclude-prefix=PATH  Ignore rules with the specified prefix\n"
                "  -E                        Ignore rules prefixed with /dev, /proc, /run, /sys\n"