CLI: suppress noisy prints when running commands

Messages such as "Blender quit" get in the way of custom commands,
add G.quiet to suppress noisy "info" prints.
This commit is contained in:
Campbell Barton
2024-03-08 13:27:29 +11:00
parent 75b6dbd132
commit 8cbb57ee0a
6 changed files with 41 additions and 10 deletions
+3
View File
@@ -946,6 +946,9 @@ static int arg_handle_command_set(int argc, const char **argv, void * /*data*/)
BLI_assert_unreachable();
}
/* Application "info" messages get in the way of command line output, suppress them. */
G.quiet = true;
background_mode_set();
app_state.command.argc = argc - 1;