diff --git a/data-access/engine/src/vlkb/src/main.cpp b/data-access/engine/src/vlkb/src/main.cpp index dd39f234319d3803e8cbaa48762574b9c4ac58f1..f2aa035995992d38d33857d64d5d5d70d670862b 100644 --- a/data-access/engine/src/vlkb/src/main.cpp +++ b/data-access/engine/src/vlkb/src/main.cpp @@ -189,7 +189,7 @@ int cmd_mergefiles(int argc, char * argv[]) int cmd_imcopy(int argc, char * argv[]) { - if((argc == 4)) + if(argc == 4) { std::string infilename{argv[1]}; int extnum = std::stoi(std::string{argv[2]}); @@ -221,12 +221,11 @@ int cmd_imcopy(int argc, char * argv[]) int cmd_imcopydav(int argc, char * argv[]) { - if((argc == 4) || (argc == 5)) + if(argc == 4) { std::string url{argv[1]}; int extnum = std::stoi(std::string{argv[2]}); std::string pixfilter{argv[3]}; - std::string temp_root = ((argc == 5) ? argv[4] : "/tmp" ); try { imcopydav(url, extnum, pixfilter); @@ -241,11 +240,10 @@ int cmd_imcopydav(int argc, char * argv[]) else { std::cerr - << "Usage: imcopydav url extnum [a:b c:d ...] <temp-root>\n" + << "Usage: imcopydav url extnum [a:b c:d ...]\n" << "\n" << "Send to stdout a subimage of N-dimesional FITS-file HDU with N-element pixel filter.\n" << "HDU is given by extension number (0=Primary HDU, 1=Ext1, ...)" - << "<temp-root> is rw storage to hold the fits-cut while streaming (optional, default is '/tmp')" << "Examples: \n" << " vlkb imcopydav http://localhost:80/tmp/testfile.fits 0 [1:100,1:100,1:100]\n"; return EXIT_FAILURE;