From ebd6b609e75ba788a51aaa5e408376f35b8596c2 Mon Sep 17 00:00:00 2001 From: TheDarkBug Date: Sat, 3 Apr 2021 23:04:27 +0200 Subject: [PATCH] Updated help message because now --opt works, fixed too high info printing with image option. --- uwufetch.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/uwufetch.c b/uwufetch.c index d382ef2..4907281 100644 --- a/uwufetch.c +++ b/uwufetch.c @@ -439,6 +439,7 @@ void print_image() { // prints logo (as an image) of the given system. distribut if (strcmp(version_name, "android") == 0) sprintf(command, "viu -t -w 18 -h 8 /data/data/com.termux/files/usr/lib/uwufetch/%s.png 2> /dev/null", version_name); else sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png 2> /dev/null", version_name); } + printf( "\n"); if (system(command) != 0) { // if viu is not installed or the image is missing printf( "\033[0E\033[3C%s\n" " There was an\n" @@ -459,12 +460,9 @@ void usage(char* arg) { " -h, --help prints this help page\n" " -i, --image prints logo as image\n" " %sworks in most terminals\n" - " read res/IMAGES.md for more info%s\n" - " -l lists all supported distributions\n" - " %sNote that the long options (--opt) are currently not working\n" - " If you are reading this and you know how to implement long opts,\n" - " send a pull request on https://github.com/TheDarkBug/uwufetch%s\n", - arg, BLUE, NORMAL, RED, NORMAL); + " read README.md for more info%s\n" + " -l lists all supported distributions\n", + arg, BLUE, NORMAL); } void uwu_name() { // changes distro name to uwufied(?) name