From 0f8fabe80c212e7779bf3e8bd5c94c3508c8515c Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Sun, 19 Apr 2026 08:34:31 +0200 Subject: [PATCH] Somehow this got removed --- src/main.c | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index caace2c..31d5fec 100644 --- a/src/main.c +++ b/src/main.c @@ -1,8 +1,6 @@ -#include "cjson/cJSON.h" #include "ui.h" #include "utils.h" #include "notes.h" -#include int main(int argc, char *argv[]) { int shouldDebug = 0; @@ -305,6 +303,19 @@ for (int i = 1; i < argc; i++) { } else if (strcmp(arg, "--help") == 0) { printf("Usage: notewrapper [options]\n"); + printf("Options:\n"); + printf(" -c, --config Specify the config file.\n"); + printf(" -d, --directory Specify the vaults' directory.\n"); + printf(" -h, --help Display this message.\n"); + printf(" -e, --editor Specify the editor to open.\n"); + printf(" -j, --jump Jumps to the end of the file on opening.\n"); + printf(" -J, --no-jump Do not jump to the end of the file\n"); + printf(" -n, --note Specify the note (or journal).\n"); + printf(" -r, --render Renders the note with Vivify.\n"); + printf(" -R, --no-render Do not render.\n"); + printf(" -v, --vault Specify the vault.\n"); + printf(" --version Display the program version and the GPL3 notice.\n"); + printf(" -V, --verbose Show debug information.\n"); return 0; } else if (strcmp(arg, "--version") == 0) { @@ -350,6 +361,19 @@ for (int i = 1; i < argc; i++) { case 'h': printf("Usage: notewrapper [options]\n"); + printf("Options:\n"); + printf(" -c, --config Specify the config file.\n"); + printf(" -d, --directory Specify the vaults' directory.\n"); + printf(" -h, --help Display this message.\n"); + printf(" -e, --editor Specify the editor to open.\n"); + printf(" -j, --jump Jumps to the end of the file on opening.\n"); + printf(" -J, --no-jump Do not jump to the end of the file\n"); + printf(" -n, --note Specify the note (or journal).\n"); + printf(" -r, --render Renders the note with Vivify.\n"); + printf(" -R, --no-render Do not render.\n"); + printf(" -v, --vault Specify the vault.\n"); + printf(" --version Display the program version and the GPL3 notice.\n"); + printf(" -V, --verbose Show debug information.\n"); return 0; // -------- flags with arguments (MUST be last in group) --------