Skip to content

Commit

Permalink
Fix whitespace and argument phrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
4G3NT committed Nov 20, 2023
1 parent ae82b4f commit 9bf6e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ parse_tldrpage(char const *input, int color_enabled)

case '-':
start = i;
if (color_enabled)
if (color_enabled)
fprintf(stdout, "%s", ANSI_COLOR_COMMENT_FG);
continue;

case '`':
start = i;
if (color_enabled)
if (color_enabled)
fprintf(stdout, "%s", ANSI_COLOR_CODE_FG);
fprintf(stdout, " ");
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/tldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int main(int argc, char **argv) {

while (1) {
option_index = 0;
c = getopt_long_only(argc, argv, "v", long_options, &option_index);
c = getopt_long_only(argc, argv, "vp:r:C", long_options, &option_index);

/* reached the end, bail out */
if (c == -1) {
Expand Down

0 comments on commit 9bf6e74

Please sign in to comment.