Skip to content

Commit 6f3fa82

Browse files
committed
Added manual version string
1 parent 2ee7215 commit 6f3fa82

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ static void print_option(struct Flag *f, size_t max) {
4848
// Prints useful information about the program as required by the --help flag.
4949
void print_help(void) {
5050
fprintf(HELP_OUT, "%s\n\n", TITLE);
51+
fprintf(HELP_OUT, "VERSION: %s\n\n", CSV_SPLIT_VERSION);
5152
fprintf(HELP_OUT, "USAGE:\n\t%s\n\n", USAGE);
5253
fprintf(HELP_OUT, "OPTIONS:\n");
5354
size_t max = max_flag_length();

src/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <stdio.h>
55
#include <string.h>
66

7+
#define CSV_SPLIT_VERSION "v0.0.1"
8+
79
struct Config {
810
/* Strings */
911
const char *file_path;

0 commit comments

Comments
 (0)