-
Notifications
You must be signed in to change notification settings - Fork 3
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
Generate manpage(s) for pineappl
binary
#145
Comments
Small update on this: |
The situation here is much better than expected, I just didn't look far enough: clap-rs/clap#3603 contains the missing information.
@scarlehoff @alecandido @felixhekhorn @andreab1997 could try this out and give me some feedback? Does it work on Mac? My idea would be to print a short help with |
First things first: it works perfectly :) A couple of suggestions:
And one observation: most likely this depends on |
This is with 0.5.9 from |
@scarlehoff did you install from
EDIT: I'm not even sure Cargo can install files other than executables during |
I see. No, from whatever crate |
@scarlehoff try:
|
That's the change from clap-v3 to v4, see here: |
Ok, it looks like we should track One of the mentioned options is also to have presets, and since PineAPPL does not use any other colors besides |
I'm afraid it doesn't work in mac
I cannot find an equivalent for linux's |
@scarlehoff thanks, I was afraid that would happen. I'll try to fix it! |
Commit 8ca0cb1 should hopefully fix the problem on MacOS. |
It has fixed that problem |
Let me add, in case it is useful, some of the error msgs I'm getting (I didn't realize before because... I didn't close the empty man page until now.
|
That looks like it expects a gzipped file instead of an uncompressed one and it should be solved by installing the files. |
Which files? I'm doing cargo install git... The fact that it looks at dev sounds weird |
Not really... pineappl/pineappl_cli/src/help.rs Line 49 in 8ca0cb1
|
|
I think we can avoid setting any environment variables since usually |
I was mainly suggesting to use |
Thanks for the explanation! I see now what you mean by installing. fwiw, doing |
I see! However, in |
We'll need #236 to implement the remaining changes. |
Since commit 087b7b7 it's possible to install man pages, simply run
and at least on Linux What remains is to improve the usability and error handling. |
Commit bdea693 removes the wrong hyphens in the SYNOPSIS. |
Use https://docs.rs/clap_mangen/. Ideally, we'd like to have
man pineappl
andpineappl help
both workThe text was updated successfully, but these errors were encountered: