Tarsnap / tarsnap

Command-line client code for Tarsnap.
https://tarsnap.com
Other
871 stars 60 forks source link

Add "descriptions" to check-man.py #517

Closed gperciva closed 2 years ago

gperciva commented 2 years ago

This is the step 1/2 towards a replacement for #226. This step:

As of this PR, misc/describe-options.txt is only used as a sanity check, but the following PR will use that as part of the zsh completion file generation.

gperciva commented 2 years ago

I did consider trying to generate short descriptions of options by parsing the man-page directly. However, the first sentence of options

After spending far too long on working on parsing the man-page, and rewriting parts of the man-page so that the first sentence of each option would serve as a 1-line short description, I realized that it would be less work to have an independent file.

gperciva commented 2 years ago

Rebased with --fast-read in the correct place, and replacing "option specified" with "option".