commit d374286d041bcc92635614a9264bd213fb428811
parent 7346f5f53f8c6b4e6bb7e25b0ebdef0189fae200
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 19 Jan 2017 16:16:29 +0100
Define the short helper message of the -h option
Diffstat:
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -28,7 +28,7 @@ project from the `cmake/CMakeLists.txt` file by appending to the
Solstice is developed by [|Meso|Star>](http://www.meso-star.com) for the
[National Center for Scientific Research](http://www.cnrs.fr/index.php) (CNRS).
-It is a free software copyright (C) CNRS 2016 and it is released under the
+It is a free software copyright (C) CNRS 2016-2017 and it is released under the
[OSI](http://opensource.org)-approved GPL v3+ license. You are welcome to
redistribute it under certain conditions; refer to the COPYING file for
details.
diff --git a/src/solstice_args.c b/src/solstice_args.c
@@ -38,9 +38,30 @@ print_help(const char* program)
{
printf(
"Usage: %s [OPTIONS] [FILE]\n"
-"Integrate the solar flux in complex solar facilities.\n\n",
+"Integrate the solar flux in a complex solar facilities described in FILE. If\n"
+"not define, the solar facilities is read from standard input.\n\n",
program);
- /* TODO print short help for the options */
+ printf(
+" -D <dirs> list of sun directions.\n");
+ printf(
+" -h display this help and exit.\n");
+ printf(
+" -n number of realisation. Default is %lu.\n",
+ SOLSTICE_ARGS_DEFAULT.nrealisations);
+ printf(
+" -o write results to OUTPUT. If not define, write results to\n");
+ printf(
+" standard output.\n");
+ printf(
+" -q do not print the helper message when no FILE is submitted.\n");
+ printf(
+" -r <rendering> switch in rendering mode and configure it.\n");
+ printf(
+" -R RECEIVERS define the file from which the list of receivers are read.\n\n");
+ printf(
+"Solstice (C) 2016-2017 CNRS. This is a free software released under the GNU GPL\n"
+"license, version 3 or later. You are free to change or redistribute it under\n"
+"certain conditions <http://gnu.org/licenses/gpl.html>.\n");
}
static res_T