-
Notifications
You must be signed in to change notification settings - Fork 22
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
Inconsistent CLI options documentation #68
Comments
MooseX::Getopt::Usage could be part of a solution to this. |
The top part of
Make those to be identical by just defining it once. In the implementation the man page comes from the script The is an option |
@vlevigneron, I have failed to find a good solution on this. Can you take a look at it? |
le 29 Jul, Mats Dufberg a ?crit :
@vlevigneron, I have failed to find a good solution on this. Can you take a look at it?
OK, but before that, I will fix (and merge if revewed with success) the following issues :
zonemaster/zonemaster-cli#145
zonemaster/zonemaster-cli#159
zonemaster/zonemaster-cli#160
… --
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#68 (comment)
--
Vincent Levigneron A.F.N.I.C. ***@***.***
|
This issue is related to #160. |
Could we migrate from MooseX::Getopt? It works for very few options but not for the Zonemaster use case. |
Everything is possible but it would be a complete rewrite of zonemaster-cli/lib/Zonemaster/CLI.pm. |
I have struggled to make MooseX::Getopt not print out, but I have failed. Is it possible to create a "catch all" option and then let that print an error message and use "perldoc zonemaster-cli" for the documentation? |
I guess I found something. I'll create a PR today, you'll see if it is an acceptable workaround. |
Would it be acceptable to drop the translation of the help output? I would say yes definitely. Do you guys agree? |
Is that the equivalent to "man zonemaster-cli" or do you mean all output?
If you only mean the equivalent of "man zonemaster-cli" I think it is OK. |
I mean |
This sounds reasonable to me. However, and I don't know how feasible it is, since it seems we have translations for |
My idea was to switch approaches and do what I usually do for documentation of CLI tools. I.e. to specify the options using Getopt::Long, document them in POD and perform the usage output with Pod::Usage. All of these are included in the Perl Core, so we could probably drop CLI's dependency on Moose that way. And the end result would be rather nice for both users and maintainers. Except for users who really need the usage translations, of course. So I guess the question is how important this feature is. If we must have the usage translations we'll have to come up with a new approach. Because Gettext doesn't work for POD. At least not as far as I know. |
I think it is nice to have all output translatable, but it would be acceptable to have the output from "--help" in English only. Other output we should keep translatable. It is a question of resources and priorities. |
The command line options are documented in two different ways. The two different documentations can be show with the commands
zonemaster-cli --help
andman zonemaster-cli
respectively. Both commands should output the same documentation.The text was updated successfully, but these errors were encountered: