From: Arnaud Giersch Date: Mon, 25 Mar 2019 14:26:02 +0000 (+0100) Subject: There's a nice sg_version(), use it. X-Git-Tag: v3_22~36 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/49ff77f9efbcb4dfeb0600186571fcf9a224f4f3?ds=sidebyside There's a nice sg_version(), use it. --- diff --git a/src/simgrid/sg_config.cpp b/src/simgrid/sg_config.cpp index aad9dd65fa..6358b596a1 100644 --- a/src/simgrid/sg_config.cpp +++ b/src/simgrid/sg_config.cpp @@ -69,7 +69,7 @@ static void sg_config_cmd_line(int *argc, char **argv) simgrid::config::set_parse(opt); XBT_DEBUG("Did apply '%s' as config setting", opt); } else if (parse_args && not strcmp(argv[i], "--version")) { - printf("%s\n", SIMGRID_VERSION_STRING); + sg_version(); shall_exit = true; } else if (parse_args && (not strcmp(argv[i], "--cfg-help") || not strcmp(argv[i], "--help"))) { printf("Description of the configuration accepted by this simulator:\n");