diff --git a/src/musrfit.cpp b/src/musrfit.cpp index 0aee41cd..52b05680 100644 --- a/src/musrfit.cpp +++ b/src/musrfit.cpp @@ -89,11 +89,13 @@ void musrfit_syntax() { cout << endl << "usage: musrfit [ [-k, --keep-mn2-ouput] [-c, --chisq-only] [-t, --title-from-data-file]"; cout << endl << " [-e, --estimateN0] [-p, --per-run-block-chisq]"; - cout << endl << " [--dump ] [--timeout ] | --version | --help"; + cout << endl << " [--dump ] [--timeout ] |"; + cout << endl << " --nexus-support | --version | --help"; cout << endl << " : msr input file"; cout << endl << " 'musrfit ' will execute musrfit"; cout << endl << " 'musrfit' or 'musrfit --help' will show this help"; cout << endl << " 'musrfit --version' will print the musrfit version"; + cout << endl << " 'musrfit --nexus-support' will print if NeXus support is available."; cout << endl << " -k, --keep-mn2-output: will rename the files MINUIT2.OUTPUT and "; cout << endl << " MINUIT2.root to -mn2.output and -mn2.root,"; cout << endl << " respectively,"; @@ -462,9 +464,14 @@ int main(int argc, char *argv[]) cout << endl << "musrfit git-branch: " << GIT_BRANCH << ", git-rev: " << GIT_CURRENT_SHA1 << endl << endl; #endif return PMUSR_SUCCESS; - } - - if (!strcmp(argv[1], "--help")) { + } else if (!strcmp(argv[1], "--nexus-support")) { +#ifdef PNEXUS_ENABLED + cout << endl << ">> musrfit: NeXus support enabled." << endl << endl; +#else + cout << endl << ">> musrfit: NeXus support NOT enabled." << endl << endl; +#endif + return PMUSR_SUCCESS; + } else if (!strcmp(argv[1], "--help")) { show_syntax = true; } }