Skip to content

Commit

Permalink
fix: make quiet mode default when redirecting output
Browse files Browse the repository at this point in the history
this eases developer experience, supposing people redirecting cjit's
output are using it into a script and anyway know already how it works
fix #65
  • Loading branch information
jaromil committed Dec 8, 2024
1 parent c80e092 commit de9166f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cjit.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ int main(int argc, char **argv) {
const char *default_main = "main";
char *entry = (char*)default_main;
bool live_mode = false;
bool quiet = false;
// quiet is by default on when cjit's output is redirected
// errors will still be printed on stderr
bool quiet = isatty(fileno(stdout))?false:true;
int arg_separator = 0;
int res = 1;
int i, c;
Expand Down

0 comments on commit de9166f

Please sign in to comment.