From: Martin Quinson Date: Wed, 17 Feb 2016 10:11:01 +0000 (+0100) Subject: add --help-aliases to all simulators, showing cfg aliases X-Git-Tag: v3_13~797^2~3 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/25dd0abaeebc08a4441684ff533c1668bd7e976d add --help-aliases to all simulators, showing cfg aliases --- diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index bd3cad56e1..4cb1317c60 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -39,8 +39,7 @@ xbt_cfg_t _sg_cfg_set = NULL; */ int _sg_cfg_init_status = 0; -/* instruct the upper layer (simix or simdag) to exit as soon as possible - */ +/* instruct the upper layer (simix or simdag) to exit as soon as possible */ int _sg_cfg_exit_asap = 0; #define sg_cfg_exit_early() do { _sg_cfg_exit_asap = 1; return; } while (0) @@ -63,25 +62,28 @@ static void sg_config_cmd_line(int *argc, char **argv) printf("%s\n", SIMGRID_VERSION_STRING); shall_exit = 1; } else if (!strcmp(argv[i], "--cfg-help") || !strcmp(argv[i], "--help")) { - printf - ("Description of the configuration accepted by this simulator:\n"); + printf("Description of the configuration accepted by this simulator:\n"); xbt_cfg_help(_sg_cfg_set); printf( -"\n" -"Each of these configurations can be used by adding\n" -" --cfg=