all repos — conver-tool @ 8e417b3f0c3691b7ca057dd2cfae4dccf18f41f6

A command line tool to manage ConVer projects.

Implemented --help
h3rald h3rald@h3rald.com
Fri, 12 Jun 2026 11:23:37 +0200
commit

8e417b3f0c3691b7ca057dd2cfae4dccf18f41f6

parent

31161e3ffbcc1c02e41b188723721e3d32292ba2

1 files changed, 25 insertions(+), 0 deletions(-)

jump to
M src/conver.csrc/conver.c

@@ -344,6 +344,25 @@ }

return CONVER_OK; } +void print_help() +{ + printf("conver - Convergent Versioning Tool v%03X-%1X", score(CONVER_VERSION), metadata(CONVER_VERSION)); + printf("\n"); + printf("(c) Copyright 2026 Fabio Cevasco\n\n"); + printf("SYNTAX\n"); + printf(" conver [<flag> | <command>]\n\n"); + printf(" Where:\n"); + printf(" <flag> can be one of the following:\n"); + printf(" -v, --version: Print the version of the program.\n"); + printf(" -h, --help: Print this help message.\n\n"); + printf(" <command> can be one of the following:\n"); + printf(" init: Initialize the project for ConVer usage.\n"); + printf(" draft: Draft a new release by specifying score and metadata.\n"); + printf(" status: Display the current Draft and Release versions, if any.\n"); + printf(" release: Move the current draft version to release.\n"); + printf(" history: Print the full version history of the project.\n"); +} + //// Commands int command_init()

@@ -625,6 +644,11 @@ {

printf("%04X\n", CONVER_VERSION); return 0; } + if ((strcmp(arg, "-h") == 0 || strcmp(arg, "--help") == 0)) + { + print_help(); + return 0; + } if ((strcmp(arg, "init") == 0)) { return command_init();

@@ -643,4 +667,5 @@ return command_status();

} } } + print_help(); }