mirror of
https://git.freebsd.org/ports.git
synced 2025-07-15 16:29:15 -04:00
Performance improvements, more reproducible output Fix seg fault when running with no args
17 lines
565 B
C++
17 lines
565 B
C++
--- src/main.cpp.orig 2021-10-19 02:19:29 UTC
|
|
+++ src/main.cpp
|
|
@@ -1,4 +1,5 @@
|
|
#include <stdio.h>
|
|
+#include <sysexits.h>
|
|
#include "fastqreader.h"
|
|
#include "unittest.h"
|
|
#include <time.h>
|
|
@@ -18,7 +19,7 @@ int main(int argc, char* argv[]){
|
|
if(argc == 1) {
|
|
cerr << "fastp: an ultra-fast all-in-one FASTQ preprocessor" << endl << "version " << FASTP_VER << endl;
|
|
//cerr << "fastp --help to see the help"<<endl;
|
|
- //return 0;
|
|
+ return EX_USAGE;
|
|
}
|
|
if (argc == 2 && strcmp(argv[1], "test")==0){
|
|
UnitTest tester;
|