-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a few issues with the generated unix man(ual) pages #124
Comments
I think this is the part of seqan that needs fixing: https://github.com/seqan/seqan/blob/develop/include/seqan/arg_parse/tool_doc.h#L1555 |
Are these things still a problem with the SeqAn3 argument parser? |
Closing this. If it still exists with the lambda3 branch, please reopen. |
@h-2 I can't get the From a fresh checkout today:
|
Okay, compiling with gcc 11 works; and there is still a problem Here are my recommended fixes, using $ diff ./lambda3_searchp.1 ./lambda3_searchp.fixed.1
1c1
< .TH LAMBDA3-SEARCHP 1 "Sep 20 2022" "lambda3-searchp 3.0.0" ""
---
> .TH LAMBDA3_SEARCHP 1 "Sep 20 2022" "lambda3-searchp 3.0.0" ""
3c3
< lambda3-searchp \- the Local Aligner for Massive Biological DatA
---
> lambda3_searchp \- the Local Aligner for Massive Biological DatA
5c5
< \fB[\fIOPTIONS\fP]\fP \fI-q QUERY.fasta\fP \fI-i INDEX.lambda\fP [\fI-o output.m8\fP]
---
> \fIlambda2 searchp\fP \fB[\fIOPTIONS\fP]\fP \fI-q QUERY.fasta\fP \fI-i INDEX.lambda\fP [\fI-o output.m8\fP] |
I'll have a look sometime this week! |
To be honest, I have no clue about the man-page formats. We are just using the seqan3 argument parser as recommend. The main problem seems to be Would the following changes fix this for you: https://github.com/seqan/lambda/blob/lambda3/src/search_options.hpp#L115 - std::string programName = "lambda3-" + std::string(argv[0]);
+ std::string programName = "lambda3_" + std::string(argv[0]); https://github.com/seqan/lambda/blob/lambda3/src/search_options.hpp#L126 - parser.info.synopsis.push_back(
+ parser.info.synopsis.push_back(std::string{"\\fIlambda3 "} + std::string(argv[0]) + "\\fP "
"[\\fIOPTIONS\\fP] \\fI-q QUERY.fasta\\fP \\fI-i INDEX.lambda\\fP [\\fI-o output.m8\\fP]"); |
Can you still reproduce the problems with the current lambda3-branch? Does it build for you now? |
The search* manpages are warning/error-free; thanks! The
|
Hi - could this link be the problem by chance? lambda/src/mkindex_options.hpp Line 120 in cf59351
At least it is longer than 80 char and can't just be split. If so, do you have a recommendation how you usually handle this? |
Thank you for the unix man(ual) pages!
The Debian linter found a few issues with them. This might be more of a seqan issue, though.
https://lintian.debian.org/maintainer/[email protected]#lambda-align2
1st issue:
using
lambda2-mkindexn.1.gz
as an example:should be
The
NAME
can't have spaces between the subcommand parts but they are allowed in theSYNOPSIS
2nd issue:
In the example above we have
.TH LAMBDA2 MKINDEXN 1 "Jan 22 2019" "lambda2 mkindexn 2.0.0" ""
, and again the space betweenLAMBDA2
andMKINDEXN
shouldn't be there. Makes it look as if the section is "MKINDEXN" instead of section 1.The text was updated successfully, but these errors were encountered: