From 25dd0abaeebc08a4441684ff533c1668bd7e976d Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 17 Feb 2016 11:11:01 +0100 Subject: [PATCH] add --help-aliases to all simulators, showing cfg aliases --- src/simgrid/sg_config.c | 96 +++++++++++++++++------------------------ 1 file changed, 39 insertions(+), 57 deletions(-) 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=