-
Notifications
You must be signed in to change notification settings - Fork 21
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
Organize --help text #389
Organize --help text #389
Conversation
0f95d4a
to
418c791
Compare
I've rebased this onto develop. Please re-review. |
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.
LGTM.
Btw, do you know of a way to display the full man page without compiling the program in the first place? I tried with perldoc
and pod2man
to no avail.
Yeah, you can run: This should probably be documented somewhere, I'm just not sure where. I guess I could add it to the README.md#Documentation, but maybe there are better options? |
I think https://github.com/zonemaster/zonemaster/blob/master/docs/public/using/cli.md should be the right place. That file should be updated anyway since it states
which is not true anymore. |
For
|
Does this PR or #371 change the actual behavior of The behavior on a server without these PRs:
The behavior with these PRs:
I really dislike the new behavior. It should be possible to turn it off again, e.g. with |
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.
See my comment.
End users should be able to run
Good spotting! I would include an update in this PR but I guess I'll have make another one for it. |
This is how a previous version of
|
I added a commit with documentation on how to view a development version of the man page. I put it in a new file called DEVELOPMENT.md. At the moment this is the only instruction included in it, but my idea is that in time we'll come up with more things to add. I'll have a look at the --stop-level problem. |
Should we really add documents in this repository? Shouldn't that be in the documentation tree? If added here, the MANIFEST file must be updated. |
@matsduf I've can't reproduce your --stop-level problem. I tried running the following command on both the current develop branch and this feature branch, and I get completely identical results. perl -Ilib script/zonemaster-cli --level=info --no-time --show-testcase --raw --no-ipv6 mail.protection.outlook.com |
1105da5
to
dc70636
Compare
As we discussed in the work group meeting the development documentation should not be located here but rather in the zonemaster/zonemaster repository. I've updated this PR to reflect this. |
dc70636
to
9773012
Compare
* Add formatting * Make option arguments more consistent * Group twin options into the same entry * Demote option aliases to an option group at the end
* Hide advanced options from --help output. * Remove examples from SYNOPSIS section, placing them in an EXAMPLES section instead. * Add proper entries to the SYNOPSIS section.
* Add missing declarations * Change nomenclature from on/off to enabled/disabled * Update formatting
Co-authored-by: tgreenx <96772376+tgreenx@users.noreply.github.com>
9773012
to
cdec433
Compare
I rebased onto latest develop. |
Purpose
Make the --help text more focused and organized.
Context
Changes
How to test this PR
Run
zonemaster-cli --help
andman zonemaster-cli
and make sure they're visually alright.