On Fri, 20 Nov 2020, Sven Barth via fpc-pascal wrote:

Graeme Geldenhuys via fpc-pascal <fpc-pascal@lists.freepascal.org> schrieb
am Fr., 20. Nov. 2020, 01:33:

For those console programmers out there... Is there anything in console
help
output that you like or wish you had. That way I could possibly add it and
make this even more useful to a wider audience.


Two things come to mind.

The first I don't know whether you have that on your list already: the
ability to change the prefixes ('-', '--') and the long argument separator
('='). Of course not specific to a single argument, but for all.

The second part is less output specific, but more DRY: a way to convert the
option list to TConsoleApplication's argument handling so that one doesn't
have to declare that twice.

Basically that should be a string for the short options
abc:e:f:g:: and an array of strings
  ['alert','bonus','config:','export:','file:','generate::']

where : means value required and :: means optional value.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to