From 5b585ea54e65206460446810b3c97e60b192aa05 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 10 Nov 2024 20:04:19 +0100 Subject: [PATCH] Updated -i flag to be -I instead --- man/ulas.1 | 4 ++-- src/main.c | 2 +- src/ulas.c | 4 ++-- src/ulas.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/ulas.1 b/man/ulas.1 index e5abd56..b2ce502 100644 --- a/man/ulas.1 +++ b/man/ulas.1 @@ -6,7 +6,7 @@ .SH NAME ulas .SH SYNOPSIS - ulas [-hvVpdA] [-o=path] [-i=path] [-l=path] [-a=initial-address] [-S=ulas|mlb] [input] + ulas [-hvVpdA] [-o=path] [-I=path] [-l=path] [-a=initial-address] [-S=ulas|mlb] [input] .SH DESCRIPTION ulas @@ -31,7 +31,7 @@ -s=path Symbols file - -i=path + -I=path Add include search path -a=initial-address diff --git a/src/main.c b/src/main.c index 2d31a31..8acf6a1 100644 --- a/src/main.c +++ b/src/main.c @@ -44,7 +44,7 @@ void ulas_getopt(int argc, char **argv, struct ulas_config *cfg) { case 'l': cfg->lst_path = strndup(optarg, ULAS_PATHMAX); break; - case 'i': + case 'I': assert(incpathslen < ULAS_INCPATHSMAX); incpaths[incpathslen++] = strndup(optarg, ULAS_PATHMAX); break; diff --git a/src/ulas.c b/src/ulas.c index 7e2a234..33d3192 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -23,7 +23,7 @@ unsigned long defslen = 0; void ulas_help(void) { printf("%s\n", ULAS_NAME); - printf("Usage %s [-%s] [-o=path] [-i=path] [-l=path] [-a=initial-address] " + printf("Usage %s [-%s] [-o=path] [-I=path] [-l=path] [-a=initial-address] " "[-S=ulas|mlb] " "[input]\n\n", ULAS_NAME, ULAS_OPTS); @@ -34,7 +34,7 @@ void ulas_help(void) { ULAS_HELP("o=path", "Output file"); ULAS_HELP("l=path", "Listing file"); ULAS_HELP("s=path", "Symbols file"); - ULAS_HELP("i=path", "Add include search path"); + ULAS_HELP("I=path", "Add include search path"); ULAS_HELP("a=initial-address", "Initial starting address"); ULAS_HELP("A", "Print addresses in disassembler mode"); ULAS_HELP("d", "Disassemble a file"); diff --git a/src/ulas.h b/src/ulas.h index 4d09d37..d6c6f90 100644 --- a/src/ulas.h +++ b/src/ulas.h @@ -13,7 +13,7 @@ #define ULAS_OPTS "hvVpdA" // args with value -#define ULAS_OPTS_ARG "o:l:s:i:w:a:S:D:" +#define ULAS_OPTS_ARG "o:l:s:I:w:a:S:D:" #define ULAS_HELP(a, desc) printf("\t-%s\t%s\n", (a), desc); -- 2.30.2