From 654cc688cfdd4a6fab65e228451e5ac337e1db72 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Tue, 13 Sep 2022 23:26:02 +0300 Subject: [PATCH] change argv letter s to i --- HISTORY.md | 11 +++++++++++ make-libs-list.c | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 HISTORY.md diff --git a/HISTORY.md b/HISTORY.md new file mode 100644 index 0000000..d0b7b34 --- /dev/null +++ b/HISTORY.md @@ -0,0 +1,11 @@ +## Legend +- 🐛 - Bug +- ✔ī¸ - Fixed +- ❌ - Removed +- ➕ - Added +- ℹī¸ - Information +- â™ģī¸ - Edited + +## ??/09/2022 - (**Current**) +- ✔ī¸ - Fixed bad returned value of `assets_version` +- â™ģī¸ - Changed the letter argument of the program to return version information from `s` to `i` diff --git a/make-libs-list.c b/make-libs-list.c index bb5b861..ae244d6 100644 --- a/make-libs-list.c +++ b/make-libs-list.c @@ -8,7 +8,7 @@ #include #include -#define VERSION "1.0.0" // software version +#define VERSION "1.0.1" // software version void usage(); void info(cJSON *json); @@ -16,7 +16,7 @@ void generate_library_list(cJSON *input_json, cJSON *output_json, char output_sy int main(int argc, char const *argv[]) { - if (argc < 2 || argc > 3) + if (argc <= 2 || argc > 3) { usage(); } @@ -46,7 +46,7 @@ int main(int argc, char const *argv[]) default: usage(); break; - case 's': + case 'i': info(json); break; case 'w': @@ -80,7 +80,7 @@ void usage() printf(" %s\n\n", "make-libs-string "); printf(" %s\n\n", " - w|l|x (windows or linux or osx)"); printf("%s\n", "Other:"); - printf(" %s\n", "make-libs-string s - to get info"); + printf(" %s\n", "make-libs-string i - to get version info"); } void info(cJSON *json)