From 17387abea7de596c07366d2abc135c32af90dc52 Mon Sep 17 00:00:00 2001 From: Shifu Chen Date: Fri, 3 Aug 2018 08:04:25 +0800 Subject: [PATCH] revise main --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1d24ea7..6f2ab0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,9 @@ string command; int main(int argc, char* argv[]){ // display version info if no argument is given if(argc == 1) { - cout << "repaq: repack FASTQ to a smaller binary file (.rfq)" << endl << "version " << VERSION_NUM << endl; + cerr << "repaq: repack FASTQ to a smaller binary file (.rfq)" << endl << "version " << VERSION_NUM << endl; + cerr << "repaq -h to see the help" << endl; + return 0; } if (argc == 2 && strcmp(argv[1], "test")==0){ UnitTest tester; @@ -28,7 +30,7 @@ int main(int argc, char* argv[]){ cmd.add("out2", 'O', "read2 output file name when decoding to paired-end FASTQ files", false, ""); cmd.add("compress", 'c', "compress input to output"); cmd.add("decompress", 'd', "decompress input to output"); - cmd.add("chunk", 0 , "the chunk size (kilo bases) for encoding, default 1000=1000kb.", false, 1000); + cmd.add("chunk", 'k' , "the chunk size (kilo bases) for encoding, default 1000=1000kb.", false, 1000); cmd.add("stdin", 0, "input from STDIN. If the STDIN is interleaved paired-end FASTQ, please also add --interleaved_in."); cmd.add("stdout", 0, "write to STDOUT. When decompressing PE data, this option will result in interleaved FASTQ output for paired-end input. Disabled by defaut."); cmd.add("interleaved_in", 0, "indicate that is an interleaved paired-end FASTQ which contains both read1 and read2. Disabled by defaut.");