[commits] Argv branch FRAMEWORK_5_2 updated. 0965c339c13590d08018ab18581039d2740d0807

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


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

from: eaaaf3ab45afb6d6b6bd55547c81c5b211dae66a

0965c33 Honor ignoreUnknownArgs for short options

Summary: https://github.com/horde/Argv/compare/eaaaf3ab45af...0965c339c135

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

commit 0965c339c13590d08018ab18581039d2740d0807
Author: Ralf Lang <lang at b1-systems.de>
Date:   Mon, 08 Jun 2020 22:38:29 +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/0965c339c13590d08018ab18581039d2740d0807


More information about the commits mailing list