aboutsummaryrefslogtreecommitdiff
path: root/kmer_total_count.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-01-31 20:52:12 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-01-31 20:52:12 -0500
commit05b54b637942c14412b78501ba8d5290d0a555bf (patch)
treeef34798d22be1e4e13073b95e38b33c589fb3477 /kmer_total_count.c
parent90280f4b00c2042ba9df5e3acc43cacd5d9c1930 (diff)
add --help text for kmer_total_count
Diffstat (limited to 'kmer_total_count.c')
-rw-r--r--kmer_total_count.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/kmer_total_count.c b/kmer_total_count.c
index f15b69c..0b4e295 100644
--- a/kmer_total_count.c
+++ b/kmer_total_count.c
@@ -8,6 +8,25 @@
#include "kmer_utils.h"
+
+void help() {
+ printf("usage: kmer_total_count -i input_file -k kmer [-n] [-l] ...\n\n");
+ printf("count mers in size k from a fasta file\n");
+ printf("\n");
+ printf(" --input, -i input fasta file to count\n");
+ printf(" --kmer, -k size of mers to count\n");
+ printf(" --nonzero, -n only print non-zero values\n");
+ printf(" --label, -l print mer along with value\n");
+ printf("\n");
+ printf("Report all bugs to mutantturkey@gmail.com\n");
+ printf("\n");
+ printf("Copyright 2014 Calvin Morrison, Drexel University.\n");
+ printf("\n");
+ printf("If you are using any dna-utils tool for a publication\n");
+ printf("please cite your usage:\n\n");
+ printf("dna-utils. Drexel University, Philadelphia USA, 2014;\n");
+ printf("software available at www.github.com/EESI/dna-utils/\n");
+}
int main(int argc, char **argv) {
@@ -57,7 +76,7 @@ int main(int argc, char **argv) {
label = true;
break;
case 'h':
- printf("help-text\n");
+ help();
exit(EXIT_SUCCESS);
default:
break;