]> git.ipfire.org Git - pakfire.git/commitdiff
cli: clean: Add a doc string
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Oct 2023 11:07:02 +0000 (11:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 15 Oct 2023 11:07:02 +0000 (11:07 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/clean.c

index 1e56cb9f1a1f6d07c2145172881ac435dffc482b..6d63747a57c2988248bbaad12f1680d106040287 100644 (file)
@@ -24,6 +24,9 @@
 #include "command.h"
 #include "pakfire.h"
 
+const char* doc = "Removes any temporary files required or left over by"
+       " previous builds.";
+
 int cli_clean(void* data, int argc, char* argv[]) {
        struct pakfire* pakfire = NULL;
        int r;
@@ -31,7 +34,7 @@ int cli_clean(void* data, int argc, char* argv[]) {
        struct cli_config* config = data;
 
        // Parse the command line
-       r = cli_parse(NULL, NULL, NULL, NULL, NULL, argc, argv, NULL);
+       r = cli_parse(NULL, NULL, NULL, doc, NULL, argc, argv, NULL);
        if (r)
                goto ERROR;