[fpc-pascal] Freepascal CLI library

2018-01-13 Thread Darius Blaszyk
I'm working on a CLI application that allows the user to do some configuration. During the process the user is presented with different questions that need to be answered, before the configuration is written to file. For convenience, the user is presented with default options as well. Something lik

Re: [fpc-pascal] Freepascal CLI library

2018-01-13 Thread wkitty42
On 01/13/2018 04:53 PM, Darius Blaszyk wrote: Is there a library available that can handle this kind of input from the command line? Though not difficult to write something from scratch (I already started on it), I feel like this has to be available already. Anyone has a tip for me? not specifi

Re: [fpc-pascal] Freepascal CLI library

2018-01-13 Thread Darius Blaszyk
> not specific to CLI apps but are you, perhaps, thinking of CheckOptions and > HasOption? No I do not look for commandline handling. Rather a CLI interaction library. Which allows to interact with the application during runtime. Similar to how sphinx-quickstart works for instance. Rgds Dariu

[fpc-pascal] Dot syntax for types?

2018-01-13 Thread Ryan Joseph
I remember I heard about a mode switch that requires "type groups” (what are these called btw?) to use a . and be prefixed. For example: type TGLType = (GL_FLOAT, GL_UNSIGNED_BYTE); TGLType.GL_FLOAT would be the full name (note GL_FLOAT already is declared so I want the type to be expl