Skip to content

Commit 8242fb2

Browse files
committed
cli help
1 parent 082e617 commit 8242fb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cli.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ km_options_t all_cli(std::shared_ptr<bc::Parser<1>> cli, all_options_t options)
219219
if (v.find('.') != std::string::npos)
220220
{
221221
bc::check::throw_if_false(bc::check::f::range(0.0, 1.0)("--abundance-min<float>", v));
222-
options->m_ab_min_f;
222+
options->m_ab_min_f = bc::utils::lexical_cast<double>(v);
223223
options->m_ab_float = true;
224224
}
225225
else
226226
options->m_ab_min = bc::utils::lexical_cast<uint32_t>(v);
227227
};
228228

229-
all_cmd->add_param("--merge-abundance-min", "during merge, min abundance to keep a k-mer.")
230-
->meta("INT")
229+
all_cmd->add_param("--merge-abundance-min", "during merge, min abundance to keep a k-mer, see README.")
230+
->meta("INT/STR/FLOAT")
231231
->def("1")
232232
->setter_c(a_min_setter);
233233

@@ -496,7 +496,7 @@ km_options_t merge_cli(std::shared_ptr<bc::Parser<1>> cli, merge_options_t optio
496496
if (v.find('.') != std::string::npos)
497497
{
498498
bc::check::throw_if_false(bc::check::f::range(0.0, 1.0)("--abundance-min<float>", v));
499-
options->m_ab_min_f;
499+
options->m_ab_min_f = bc::utils::lexical_cast<double>(v);
500500
options->m_ab_float = true;
501501
}
502502
else

0 commit comments

Comments
 (0)