You can also try this: http://yann.merignac.free.fr/unit-cmdline.html
It's a command line parser I wrote when I needed it a few years ago. I was inspired by these 2 articles: - https://www.adacore.com/gems/gem-138-gnatcoll.command-line - https://www.adacore.com/gems/gem-139-master-the-command-line-part-2 Le lun. 14 janv. 2019 à 09:41, Michael Van Canneyt <mich...@freepascal.org> a écrit : > > > On Mon, 14 Jan 2019, Martok wrote: > > > I was 100% expecting that sort of answer. > > My invitation to suggest improvements, you mean ? > > I meant it: you're welcome to suggest improvements. > > If you implement something like argpars and it can be used as backend for > TCustomApplication, I'm willing to rework TCustomApplication to use it. > This way we keep backwards compatibility and offer the possibility to > extend > it. > > I'm not blind to the shortcomings of TCustomApplication argument parsing. > It fully handles the unix '-a' '--aaa' scheme of doing things, but > currently > does not handle options in command form > prog --globalopts command [--commandopts] args > > So, if you can offer something to keep current functionality and allow this > as well: be my guest... > > But e.g. the geptops way, which basically forces you to use a while loop is > really not acceptable, which is why the TCustomApplication interface is > what > it is today. > > Michael. > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal