diff options
Diffstat (limited to 'config-parser.c')
-rw-r--r-- | config-parser.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config-parser.c b/config-parser.c index 075ef47..3cebc73 100644 --- a/config-parser.c +++ b/config-parser.c @@ -1,5 +1,4 @@ - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -16,6 +15,7 @@ Result parse_config(int argc, char* argv[]) { res.success = false; Config tmp; tmp.precision = 0; + tmp.multiline = false; tmp.human_readable = false; tmp.help = false; @@ -36,6 +36,11 @@ Result parse_config(int argc, char* argv[]) { ) { tmp.human_readable = true; } else if ( + strcmp(argument, "--multiline") == 0 + || strcmp(argument, "-m") == 0 + ) { + tmp.multiline = true; + } else if ( comp1 || strncmp(argument, "-p", 2) == 0 ) { if (precision != NULL) { @@ -124,6 +129,7 @@ Result parse_config(int argc, char* argv[]) { Config* conf = malloc(sizeof(int) + sizeof(bool)); conf->help = tmp.help; conf->human_readable = tmp.human_readable; + conf->multiline = tmp.multiline; conf->precision = tmp.precision; res.success = true; |