-
Notifications
You must be signed in to change notification settings - Fork 82
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
ArgParser: Don't show headers for empty sections. #1175
Comments
I think this cannot be done automatically in our design... because I add the One way would be to allow the What do you think? |
So to get me right, General Options is automatically generated by the parser - no user input required? But it‘s content is only displayed if -hh is passed to the parser? I am not familiar with the structure of the parser, but would it then not make sense to keep the automagically hidden arguments in a separate list and also only add the sections when required by the user? Just a thought, but I am not familiar with the design. |
No. This was Hannes (with
Then I would have to still signal the |
Ok I see. But the problem with the advanced section is that it is not possible to combine hidden with non hidden options. You could argue that one should only use the advanced section if all options are advanced. But I think that this is not a strong design, as there are ways to use it wrong. So the behavior should be rather that a section or the parser should know when it is empty or not. |
Yes you are right but I don't see a clean way to do that in out current design because we store all |
yes, there would be some work about it. Though, this is not a major issue and not relevant for the current or next release. Let's see how we can schedule it. |
GENERAL OPTIONS
should not be displayed, because there are no general options (just visible with -hh).The text was updated successfully, but these errors were encountered: