Prints usage information and exits the program.
- Parameters
-
[out] | rc | Exit status to return |
[in] | progname | Name of the program |
usage() is called when either the --help
or -h
command line options are given to the program; in this case, the exit status is EXIT_SUCCESS, or when an unknown option is given; in this case, the exit status is EXIT_FAIL.
Definition at line 139 of file smash.cc.
140 std::printf(
"\nUsage: %s [option]\n\n", progname.c_str());
142 " -h, --help usage information\n"
144 " -i, --inputfile <file> path to input configuration file\n"
145 " (default: ./config.yaml)\n"
146 " -d, --decaymodes <file> override default decay modes from file\n"
147 " -p, --particles <file> override default particles from file\n"
149 " -c, --config <YAML> specify config value overrides\n"
150 " (multiple -c arguments are supported)\n"
151 " -m, --modus <modus> shortcut for -c 'General: { Modus: <modus> "
153 " -e, --endtime <time> shortcut for -c 'General: { End_Time: <time> "
157 " -o, --output <dir> output directory (default: ./data/<runid>)\n"
158 " -l, --list-2-to-n list all possible 2->n reactions (with n>1)\n"
159 " -r, --resonance <pdg> dump width(m) and m*spectral function(m^2)"
160 " for resonance pdg\n"
161 " -s, --cross-sections <pdg1>,<pdg2>[,mass1,mass2[,plab1,...]] \n"
162 " dump all partial cross-sections of "
163 "pdg1 + pdg2 reactions versus sqrt(s).\n"
164 " -S, --cross-sections-fs <pdg1>,<pdg2>[,mass1,mass2[,plab1,...]] \n"
165 " dump an approximation of the final-state"
167 " of pdg1 + pdg2 reactions versus sqrt(s).\n"
168 " Contributions from strings are not considered"
169 " for the final state.\n"
170 " Masses are optional, by default pole masses"
172 " Note the required comma and no spaces.\n"
173 " -f, --force force overwriting files in the output "
176 " -x, --dump_iSS Dump particle table in iSS format\n"
177 " This format is used in MUSIC and CLVisc\n"
178 " relativistic hydro codes\n"
179 " -q, --quiet Supress disclaimer print-out\n"
180 " -n, --no-cache Don't cache integrals on disk\n"
181 " -v, --version\n\n");