[commits] Argv branch master updated. 305451f3f8c6430ec214df6c895d599723b2920c

jan at horde.org jan at horde.org
Mon Jun 8 20:37:29 UTC 2020


The branch "master" has been updated.
The following is a summary of the commits.

from: ae676efe45791c1622e8dd7fa26757316f864e6d

305451f Honor ignoreUnknownArgs for short options

Summary: https://github.com/horde/Argv/compare/ae676efe4579...305451f3f8c6

-----------------------------------------------------------------------

commit 305451f3f8c6430ec214df6c895d599723b2920c
Author: Ralf Lang <lang at b1-systems.de>
Date:   Mon, 08 Jun 2020 22:37:26 +0200

Honor ignoreUnknownArgs for short options

Make the partser honor the ignoreUnknownArgs flag for short options, too

While ignoreUnknownArgs used to work for ignoring unknown long options, unknown short options would make the parser complain even when ignoreUnknownArgs was set. This breaks for situations where I would first separate any options from positional arguments (and maybe process global options like --help, --verbose, -h, -v) and later parse again after determining which module(s) should provide further options.

 M lib/Horde/Argv/Parser.php

https://github.com/horde/Argv/commit/305451f3f8c6430ec214df6c895d599723b2920c


More information about the commits mailing list