-
Notifications
You must be signed in to change notification settings - Fork 53
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
Make consistent Pod documentation #3
Comments
In addition to POD, it would be useful to have all these scripts support command line arguments for getting help and a usage synopsis. That deserves its own ticket, I suppose. Also I’ve noticed the scripts have a mix of Getopt::Std and Getopt::Long. I wonder if that results in some inconsistencies in argument handling that ought to be addressed? (The syntax and semantics of options needs to match the equivalent Unix utility as much as possible — but should also be internally consistent within PPT.) |
Note that we specifically do not have a goal of consistency. Tom's original idea was that these programs could do the same work as the common unix counterparts, which as a set are also not consistent. But, if something does not have However, we can have consistent POD docs where we show everything in the same way. That would be a big help. How a particular program decides to show that for you is a different matter. |
Ok, I agree with all that. My takeaway is that there there’s wiggle room for differences, but a low tolerance for inconsistencies with the Unix counterparts. Inconsistencies amongst the scripts are tolerated to the extent they exist in the Unix counterparts. We shouldn’t make those any worse! My recent changes to units included the ability to optionally feed input via command line arguments. The Unix version doesn’t have that, although I think it should. In retrospect I should probably have implemented that as a new command line parameter, but I was going for simplicity: To sum up, with all these points in mind, I’ll probably work on adding POD where it’s missing or deficient (e.g. bc) as well as -help support. One last point. For -help and -usage/-? can I make use of POD::Usage and pod2usage? |
Pod::Usage is fine since it's a core module since 5.006 |
Inside each program under bin/, create consistent Pod documentation, including the name of the program, the list of the contributors, and so on. See bin/factor for an example.
The text was updated successfully, but these errors were encountered: