diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-06-28 05:56:56 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-06-28 05:56:56 +0000 |
| commit | 64e61e9b5de7546dc3bcbca577a029629774e108 (patch) | |
| tree | 846bf2bf5f1dbfdd00e6f841454d6ed748770671 /src/help.c | |
| parent | 0cc8a1c0faa2743acc6bc38ee8a0c6e2af4f64b1 (diff) | |
fixed --quiet without a matching quiet target edgecase
Diffstat (limited to 'src/help.c')
| -rw-r--r-- | src/help.c | 58 |
1 files changed, 29 insertions, 29 deletions
@@ -24,33 +24,33 @@ #include "vars.h" void help(void) { - if (is_verbose) { - printf("%s , \n", bold_magenta); - printf("%s / \\ \n", bold_magenta); - printf("%s_.--' '--._ \n", bold_magenta); - printf("%s`'--, ,--'` %spkgit %s%s- package it!%s\n", bold_magenta, color_reset, italic, gray, color_reset); - printf("%s _- %s\\ /%s -_ %s%s%s\n", bold_yellow, bold_magenta, bold_yellow, magenta, version, color_reset); - printf("%s'-_ %s'%s _-' \n", bold_yellow, bold_magenta, bold_yellow); - printf("%s `'-.-'` %s\n", bold_yellow, color_reset); - } else { - printf("pkgit %s%s- package it!%s\n", italic, gray, color_reset); - printf("%s%s%s\n", magenta, version, color_reset); - } - printf("\n"); - printf("%ssubcommand flags%s:\n", red, color_reset); - printf("%s %s-a%s, %s--add %s[url] %s# add a repo\n", color_reset, green, color_reset, yellow, blue, gray); - printf("%s %s-b%s, %s--build %s[path] %s# build a package\n", color_reset, green, color_reset, yellow, blue, gray); - printf("%s %s-d%s, %s--declare %s# install all packages\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-s%s, %s--search %s[pkgs] %s# find a package from your repos\n", color_reset, green, color_reset, yellow, blue, gray); - printf("%s %s-i%s, %s--install %s[pkgs, urls] %s# install a package/repo\n", color_reset, green, color_reset, yellow, blue, gray); - printf("%s %s-r%s, %s--remove %s[pkgs] %s# remove an installed package\n", color_reset, green, color_reset, yellow, blue, gray); - printf("%s %s-l%s, %s--list %s# list all installed packages\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-u%s, %s--update %s# update all installed packages\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-h%s, %s--help %s# display this help message\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-v%s, %s--version %s# display version number\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-c%s, %s--check %s# run package checks\n", color_reset, green, color_reset, yellow, gray); - printf("\n"); - printf("%smodifier flags%s:\n", red, color_reset); - printf("%s %s-q%s, %s--quiet %s# run without logging to terminal\n", color_reset, green, color_reset, yellow, gray); - printf("%s %s-f%s, %s--force %s# force an operation like 'install'\n", color_reset, green, color_reset, yellow, gray); + if (is_verbose) { + printf("%s , \n", bold_magenta); + printf("%s / \\ \n", bold_magenta); + printf("%s_.--' '--._ \n", bold_magenta); + printf("%s`'--, ,--'` %spkgit %s%s- package it!%s\n", bold_magenta, color_reset, italic, gray, color_reset); + printf("%s _- %s\\ /%s -_ %s%s%s\n", bold_yellow, bold_magenta, bold_yellow, magenta, version, color_reset); + printf("%s'-_ %s'%s _-' \n", bold_yellow, bold_magenta, bold_yellow); + printf("%s `'-.-'` %s\n", bold_yellow, color_reset); + } else { + printf("pkgit %s%s- package it!%s\n", italic, gray, color_reset); + printf("%s%s%s\n", magenta, version, color_reset); + } + printf("\n"); + printf("%ssubcommand flags%s:\n", red, color_reset); + printf("%s %s-a%s, %s--add %s[url] %s# add a repo\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s %s-b%s, %s--build %s[path] %s# build a package\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s %s-d%s, %s--declare %s# install all packages\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-s%s, %s--search %s[pkgs] %s# find a package from your repos\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s %s-i%s, %s--install %s[pkgs, urls] %s# install a package/repo\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s %s-r%s, %s--remove %s[pkgs] %s# remove an installed package\n", color_reset, green, color_reset, yellow, blue, gray); + printf("%s %s-l%s, %s--list %s# list all installed packages\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-u%s, %s--update %s# update all installed packages\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-h%s, %s--help %s# display this help message\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-v%s, %s--version %s# display version number\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-c%s, %s--check %s# run package checks\n", color_reset, green, color_reset, yellow, gray); + printf("\n"); + printf("%smodifier flags%s:\n", red, color_reset); + printf("%s %s-q%s, %s--quiet %s# run without logging to terminal\n", color_reset, green, color_reset, yellow, gray); + printf("%s %s-f%s, %s--force %s# force an operation like 'install'\n", color_reset, green, color_reset, yellow, gray); } |
