package cmdliner
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=176579b437bb4c1b3c8a8cedbf1909f849a90ca434e7c4173096f232a7f408c4
md5=9c2490a6d1def1e6a8bb264f235682cb
CHANGES.md.html
v0.9.6 2014-11-18 La Forclaz (VS)
Optional arguments. Invoke the printer on the default (absent) value only if needed, i.e. if help is shown. Strictly speaking an interface breaking change – for example if the absent value was lazy it would be forced on each run. This is no longer the case.
Parsed command line syntax: allow short flags to be specified together under a single dash, possibly ending with a short option. This allows to specify e.g.
tar -xvzf archive.tgz
ortar -xvzfarchive.tgz
. Previously this resulted in an error, all the short flags had to be specified separately. Backward compatible in the sense that only more command lines are parsed. Thanks to Hugo Heuzard for the patch.End user error message improvements using heuristics and edit distance search in the optional argument and sub command name spaces. Thanks to Hugo Heuzard for the patch.
Adds
Arg.doc_{quote,alts,alts_enum}
, documentation string helpers.Adds the
Term.eval_peek_opts
function for advanced usage scenarios.The function
Arg.enum
now raisesInvalid_argument
if the enumeration is empty.Improves help paging behaviour on Windows. Thanks to Romain Bardou for the help.
v0.9.5 2014-07-04 Cambridge (UK)
Add variance annotation to Term.t. Thanks to Peter Zotov for suggesting.
Fix section name formatting in plain text output. Thanks to Mikhail Sobolev for reporting.
v0.9.4 2014-02-09 La Forclaz (VS)
Remove temporary files created for paged help. Thanks to Kaustuv Chaudhuri for the suggestion.
Avoid linking against
Oo
(was used to get program uuid).Check the environment for
$MANPAGER
aswell. Thanks to Raphaël Proust for the patch.OPAM friendly workflow and drop OASIS support.
v0.9.3 2013-01-04 La Forclaz (VS)
Allow user specified
SYNOPSIS
sections.
v0.9.2 2012-08-05 Lausanne
OASIS 0.3.0 support.
v0.9.1 2012-03-17 La Forclaz (VS)
OASIS support.
Fixed broken
Arg.pos_right
.Variables
$(tname)
and$(mname)
can be used in a term's man page to respectively refer to the term's name and the main term name.Support for custom variable substitution in
Manpage.print
.Adds
Term.man_format
, to facilitate the definition of help commands.Rewrote the examples with a better and consistant style.
Incompatible API changes:
The signature of
Term.eval
andTerm.eval_choice
changed to make it more regular: the given term and its info must be tupled together even for the main term and the tuple order was swapped to make it consistent with the one used for arguments.
v0.9.0 2011-05-27 Lausanne
First release.