Skip to content

Commit

Permalink
added MRTRIX_PARSE_ONLY to list of environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Aug 20, 2023
1 parent 568e0de commit 79044b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int main (int cmdline_argc, char** cmdline_argv)
//ENVVAR name: MRTRIX_PARSE_ONLY
//ENVVAR Set the command to parse the provided inputs and then quit
//ENVVAR if it is 1. This can be used in the CI of wrapping code,
//ENVVAR such as the automatically generated Pydra ones
//ENVVAR such as the automatically generated Pydra interfaces
char* parse_only = std::getenv("MRTRIX_PARSE_ONLY");
if (parse_only && ::MR::to<int>(parse_only)) {
WARN(
Expand Down
6 changes: 6 additions & 0 deletions docs/reference/environment_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ List of MRtrix3 environment variables
:option:`NumberOfThreads` setting in the configuration file, but
will be overridden by the ENVVAR ``-nthreads`` command-line option.

.. envvar:: MRTRIX_PARSE_ONLY

Set the command to parse the provided inputs and then quit
if it is 1. This can be used in the CI of wrapping code,
such as the automatically generated Pydra interfaces

.. envvar:: MRTRIX_PRESERVE_PHILIPS_ISO

Do not remove the synthetic isotropically-weighted diffusion
Expand Down

0 comments on commit 79044b0

Please sign in to comment.