diff options
| author | dacctal <donotcontactmevia@email.invalid> | 2026-07-02 03:54:29 +0000 |
|---|---|---|
| committer | dacctal <donotcontactmevia@email.invalid> | 2026-07-02 03:54:29 +0000 |
| commit | 2fe0443d7073e59b1e4d75f49f0a5a417678f4cd (patch) | |
| tree | 24a269f1fa532eacea4380d03882abe145dc297d /src/help.c | |
| parent | fe3caeefac7a2081f5c9db90bf5c821624a71082 (diff) | |
ezntek: checkpoint!
Diffstat (limited to 'src/help.c')
| -rw-r--r-- | src/help.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -62,13 +62,14 @@ void help(void) { printf(BOLD_YELLOW "'-_ " BOLD_MAGENTA "'" BOLD_YELLOW " _-' \n"); printf(BOLD_YELLOW " `'-.-'` " COLOR_RESET "\n"); } else { - printf("pkgit %s%s- package it!%s\n", ITALIC, GRAY, COLOR_RESET); - printf("%s%s%s\n", MAGENTA, VERSION, COLOR_RESET); + printf(BOLD "pkgit " COLOR_RESET ITALIC GRAY "- package it!" COLOR_RESET + "\n"); + printf("version " MAGENTA VERSION COLOR_RESET "\n"); } printf("\n"); printf(RED "subcommand flags" COLOR_RESET ":\n"); - for (size_t i = 0; i < sizeof(cmd_flags) / sizeof(cmd_flags[0]); i++) { + for (size_t i = 0; i < LENGTH(cmd_flags); i++) { printf(COLOR_RESET "\t" GREEN "%-2s" COLOR_RESET ", " YELLOW "%-12s" BLUE "%-16s" GRAY "# %s\n" COLOR_RESET, cmd_flags[i].short_flag, cmd_flags[i].long_flag, @@ -76,7 +77,7 @@ void help(void) { } printf("\n" RED "modifier flags" COLOR_RESET ":\n"); - for (size_t i = 0; i < sizeof(mod_flags) / sizeof(mod_flags[0]); i++) { + for (size_t i = 0; i < LENGTH(mod_flags); i++) { printf(COLOR_RESET "\t" GREEN "%-2s" COLOR_RESET ", " YELLOW "%-12s" BLUE "%-16s" GRAY "# %s\n" COLOR_RESET, mod_flags[i].short_flag, mod_flags[i].long_flag, |
