From 05b54b637942c14412b78501ba8d5290d0a555bf Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 31 Jan 2014 20:52:12 -0500 Subject: add --help text for kmer_total_count --- kmer_total_count.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3