-
Notifications
You must be signed in to change notification settings - Fork 24
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
Clean up help string #36
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with all your points, I just wonder how we want to organize this effort - namely, who is going to put in all the work.
I would prioritize the help string fixes and (if we decide to go for it) work on the documentation at a later stage. For the relatively little experience I have with cgnsutilities
I think that the added value for an RTD page would mostly be the possibility to add some explanatory graphics... right?
Yeah maybe others have different thoughts on priority, but to me 2 and 4 are the most important, but will take some time. As for docs, I was thinking some of the help string should be moved into the docs page instead (especially the really long strings that explain input file formats). On the other hand, maybe we want to focus on adding tests instead? So far very little code is tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed couple of non-issues, Approving and merging.
I agree we can improve more, and maybe we should just create issues for those to discuss and prioritize?
To answer briefly here some points:
- Yeah we should probably unify the options. Many already have camelCase.
- We should at least add the defaults that are already specified to the help string of a given option.
- Improving defaults would be helpful.
- Right, currently this is set up in this hierarchical manner so its assumed that you read the top level description. This is not the best design. We should include the short description from the top level also in the actual option help.
Since this is a CLI tool, in the past we baked a minimum documentation and examples into some help strings for some suboptions.
If we want to improve documentation I think we can make a proper sphinx docs page, or is it sufficient to instead make extensive example scripts (since the examples document the usage)? Ideally we should have both.
I think as we include/add examples we can alongside add tests.
Purpose
This is an attempt at cleaning up the help string:
\n
There are plenty of things that we can improve:
(default: None)
outFile
fortimecombine
the default isNone
, but later on we just replace it with another default. We should probably just set the default in the argparser directly)cgns_utils -h
but not when specific modes are queried. Ideally, they should be shown in both places and thedescription=
option may do this.There is also an open question of whether we want a docs page for this. Some of the help text spans too many lines, so maybe they should go into a docs page instead? For example, I don't think it's necessary to describe the structure of some input files via the help string.
Type of change
What types of change is it?
Select the appropriate type(s) that describe this PR
Testing
Existing tests pass. There are no functionality changes and I did manually check a lot of the help text.
Checklist
Put an
x
in the boxes that apply.flake8
andblack
to make sure the code adheres to PEP-8 and is consistently formatted