Commit b7d0bf8c authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: -H displays the advanced help

parent 86e788fc
......@@ -1307,7 +1307,7 @@ class App {
App(std::string description_, bool help, detail::enabler) : description_(std::move(description_)) {
if(help)
help_ptr_ = add_flag("-h,--help", "Print this help message and exit");
help_ptr_ = add_flag("-h,--help", "help");
}
public:
......
......@@ -143,11 +143,6 @@ extern int optind, optopt, opterr;
void usage(char *progname, bool advanced)
{
cout
<< " -h help" << endl
<< " -H help, including experimental and advanced options" << endl
<< "The full help is available in the doc/algo.org file."
<< endl
<< endl
<< "Examples (see doc/algo.org)" << endl
<< " " << progname << " -c clones -g germline/homo-sapiens.g -2 -3 demo/Stanford_S22.fasta # (basic usage, detect the locus for each read," << endl
......@@ -460,9 +455,11 @@ int main (int argc, char **argv)
app.add_flag_function("-v", [&](size_t n) { verbose += n ; }, "verbose mode") -> group(group);
// case 'h': usage(argv[0], false);
// case 'H': usage(argv[0], true);
app.add_flag_function("-H", [&](size_t n) { throw CLI::CallForAdvancedHelp() ; },
"help, including advanced and experimental options"
"\n "
"The full help is available in the doc/algo.org file."
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment