Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
There's a nice sg_version(), use it.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 25 Mar 2019 14:26:02 +0000 (15:26 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 25 Mar 2019 14:26:02 +0000 (15:26 +0100)
src/simgrid/sg_config.cpp

index aad9dd6..6358b59 100644 (file)
@@ -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")) {
       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");
       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");