From 0625bc008fcb46376f67448ab817c7d07cf59aad Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Fri, 27 May 2022 13:14:30 +0200 Subject: [PATCH] fixed a typo, and tell the user if the file format info is not provided MusrRoot is assumed. --- src/dump_header.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dump_header.cpp b/src/dump_header.cpp index b9237808..ecb89d08 100644 --- a/src/dump_header.cpp +++ b/src/dump_header.cpp @@ -87,7 +87,7 @@ void dump_header_syntax() std::cout << std::endl << " -rn, --runNo : run number of the header to be dumped."; std::cout << std::endl << " -fn, --fileName : muSR data file name."; std::cout << std::endl << " -ff, --fileFormat : where can be:"; - std::cout << std::endl << " MusrRoot, NeXus, ROOT (old LEM), PSI-BIN, PSI-MDU, MUD, WKM"; + std::cout << std::endl << " MusrRoot (default), NeXus, ROOT (old LEM), PSI-BIN, PSI-MDU, MUD, WKM"; std::cout << std::endl << " NeXus is only supported if enabled."; std::cout << std::endl << " -y, --year : has to be 4 digit, e.g. 2005, if provided it is used to"; std::cout << std::endl << " generate the file name for the given , otherwise the current"; @@ -884,7 +884,7 @@ int main(int argc, char *argv[]) } if (strcmp(argv[i+2], "gps") && strcmp(argv[i+2], "ltf") && strcmp(argv[i+2], "dolly") && strcmp(argv[i+2], "gpd") && strcmp(argv[i+2], "hifi")) { - std::cerr << std::endl << "**ERROR** found --psi-bulk with 2nd argument '" << argv[i+1] << "'! This is an unkown instrument." << std::endl; + std::cerr << std::endl << "**ERROR** found --psi-bulk with 2nd argument '" << argv[i+2] << "'! This is an unkown instrument." << std::endl; dump_header_syntax(); return 1; }