Skip to content

Commit

Permalink
chafa: Return TRUE (0) after print_version().
Browse files Browse the repository at this point in the history
Chafa should not return an error when being asked for --version. This is the correct behavior and needed to make integration tests run correctly.

github #7
  • Loading branch information
cdluminate authored and hpjansson committed Aug 13, 2018
1 parent 5ddfe4c commit da01aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chafa/chafa.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ parse_options (int *argc, char **argv [])
if (options.show_version)
{
print_version ();
return FALSE;
return TRUE;
}

if (*argc < 2)
Expand Down

0 comments on commit da01aa1

Please sign in to comment.