From d09f91b0fe19212c086cffc1daf926df4f84708c Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Mon, 20 Apr 2020 18:21:40 +0200
Subject: [PATCH] lktadm help message update

---
 src/main/lktadm.c | 27 +++++++++++++++++----------
 1 file changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/main/lktadm.c b/src/main/lktadm.c
index 68a26e42..f43d40c2 100644
--- a/src/main/lktadm.c
+++ b/src/main/lktadm.c
@@ -66,16 +66,23 @@ open_db(void)
 noreturn void
 help(void)
 {
-    printf("Usage for lktadm:\n\n"
-           "  --init:    init metadata for all the database according to the root of\n"
-           "             the root of the base\n\n"
-           "  --file <file.mkv, ...>:         set automatically metadata for the file file.mkv\n\n"
-           "  --prompt-file <file.mkv, ...>:  prompt metadata to put for the file file.mkv\n\n"
-           "  --populate-all:                 populate the database with whate is found in the fs\n\n"
-           "  --cat <file.mkv, ...>:          print the metadata of files\n\n"
-           "  --get-id <id>:                  print metadata from kurisu with an id\n\n"
-           "  --down-id <id> <path>:          download a kara from kurisu to a path\n\n"
-           "  --default-conf:                 output to stdout the default configuration file\n\n");
+    static const char *help__ =
+        "USAGE lktadm <COMMAND> [ARGS [...]]:\n"
+        "\n"
+        "COMMANDS:\n"
+        "    init                   the init sub command\n"
+        "    get <id>               get the metadata of a kara from kurisu\n"
+        "    download <id> <path>   download\n"
+        "    cat <path>             display the metadata of a mkv file\n"
+        "    conf                   prints the default config file to stdout\n"
+        "\n"
+        "INIT COMMANDS:\n"
+        "    database               write the default empty database\n"
+        "    popualte               populate the database from the filesystem\n"
+        "    metadata               write metadata to mkv files on the disk using theirs path\n"
+        "    file <path>            init the metadata for a single file by its path\n"
+        "\n";
+    write(1, help__, strlen(help__));
     exit(EXIT_SUCCESS);
 }
 
-- 
GitLab