From 16d2e23cd79a1f3f51059092d1b41de5af9d6a03 Mon Sep 17 00:00:00 2001 From: Brian Ondov Date: Fri, 15 Apr 2016 16:52:03 -0400 Subject: [PATCH] bounds printing and option tweaks --- src/mash/CommandBounds.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mash/CommandBounds.cpp b/src/mash/CommandBounds.cpp index fc5f1a6..59ad0a3 100644 --- a/src/mash/CommandBounds.cpp +++ b/src/mash/CommandBounds.cpp @@ -26,7 +26,7 @@ CommandBounds::CommandBounds() argumentString = ""; useOption("help"); - addOption("kmer", Option(Option::Integer, "k", "", "k-mer size.", "21")); + addOption("kmer", Option(Option::Integer, "k", "", "k-mer size.", "21", 1, 32)); addOption("prob", Option(Option::Number, "p", "", "Mash distance estimates will be within the given error bounds with this probability.", "0.99", 0, 1)); } @@ -47,6 +47,10 @@ int CommandBounds::run() const int k = getOption("kmer").getArgumentAsNumber(); double q2 = (1.0 - getOption("prob").getArgumentAsNumber()) / 2.0; + cout << endl << "Parameters (run with -h for details):" << endl; + cout << " k: " << k << endl; + cout << " p: " << getOption("prob").getArgumentAsNumber() << endl << endl; + cout << "\tMash distance" << endl; cout << "Sketch"; @@ -91,5 +95,7 @@ int CommandBounds::run() const cout << endl; } + cout << endl; + return 0; }