From: Arnaud Giersch Date: Mon, 10 Feb 2014 10:02:18 +0000 (+0100) Subject: Fix help message for vm_workstation/model. X-Git-Tag: v3_11_beta~61 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2600e409fa6961dcd35dd7043281b8761fef94ca Fix help message for vm_workstation/model. --- diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 50b61367b2..6e8ccc1b64 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -538,6 +538,15 @@ void sg_config_init(int *argc, char **argv) xbt_cfgelm_string, 1, 1, &_sg_cfg_cb__workstation_model, NULL); xbt_cfg_setdefault_string(_sg_cfg_set, "workstation/model", "default"); + p = description + + sprintf(description, + "The model to use for the vm workstation. Possible values: "); + for (i = 0; surf_vm_workstation_model_description[i].name; i++) + p += sprintf(p, "%s%s", (i == 0 ? "" : ", "), + surf_vm_workstation_model_description[i].name); + sprintf(p, + ".\n (use 'help' as a value to see the long description of each model)"); + xbt_cfg_register(&_sg_cfg_set, "vm_workstation/model", description, xbt_cfgelm_string, 1, 1, &_sg_cfg_cb__vm_workstation_model, NULL); xbt_cfg_setdefault_string(_sg_cfg_set, "vm_workstation/model", "default"); diff --git a/src/surf/surf_interface.cpp b/src/surf/surf_interface.cpp index 54becfa4f1..26542547f9 100644 --- a/src/surf/surf_interface.cpp +++ b/src/surf/surf_interface.cpp @@ -156,7 +156,7 @@ s_surf_model_description_t surf_workstation_model_description[] = { s_surf_model_description_t surf_vm_workstation_model_description[] = { {"default", - "Default vm workstation model.)", + "Default vm workstation model.", surf_vm_workstation_model_init_current_default}, {NULL, NULL, NULL} /* this array must be NULL terminated */ };