biobambam2 icon indicating copy to clipboard operation
biobambam2 copied to clipboard

Do not crash if no argument was provided

Open mmokrejs opened this issue 7 years ago • 1 comments

Hi, I find it unusual that bamsort, bammerge and probably many other utils crash if they are executed without an argument. Please assume '-h' was passed to the utility and display appropriate usage help text.

$ bammerge
Refusing write binary data to terminal, please redirect standard output to pipe or file.

/usr/lib64/libmaus2.so.2(libmaus2::util::StackTrace::StackTrace()+0x5f)[0x7fffceaed4df]
bammerge(libmaus2::exception::LibMausException::LibMausException()+0x20)[0x4128c0]
bammerge()[0x410fd3]
bammerge()[0x40ce06]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7fffcd8ba280]
bammerge()[0x40d4da]

$

mmokrejs avatar Apr 25 '17 11:04 mmokrejs