command-line-interface-pages / v2-tooling

Tools for handling v2.*.* syntax
6 stars 3 forks source link

Recognize help/version examples in TlDr pages and convert them to Help/Version tags with single value #49

Closed EmilyGraceSeville7cf closed 1 year ago

EmilyGraceSeville7cf commented 1 year ago

Recognize just the following code samples:

- (Display|Show|Print)( a|the)? help:

`command (--help|-h|/?)`

and:

- (Display|Show|Print)( a|the)? version:

`command (--version|-v)`

They are written in regex-like manner.

EmilyGraceSeville7cf commented 1 year ago

I think this is how it can be done: