diff --git a/main.cc b/main.cc index 6be7fe77ec..ce5eb5f149 100644 --- a/main.cc +++ b/main.cc @@ -59,6 +59,7 @@ #include "repair/row_level.hh" #include #include +#include #include #include #include @@ -638,8 +639,10 @@ To start the scylla server proper, simply invoke as: scylla server (or just scyl // If --version is requested, print it out and exit immediately to avoid // Seastar-specific warnings that may occur when running the app - auto parsed_opts = bpo::command_line_parser(ac, av).options(app.get_options_description()).allow_unregistered().run(); - print_starting_message(ac, av, parsed_opts); + if (!isatty(fileno(stdin))) { + auto parsed_opts = bpo::command_line_parser(ac, av).options(app.get_options_description()).allow_unregistered().run(); + print_starting_message(ac, av, parsed_opts); + } sharded token_metadata; sharded erm_factory;