Re: Functional programming with GLib
- Date: Mon, 7 Aug 2017 23:34:39 +0200
- From: Stefan Sauer <ensonic@xxxxxxxxxxxxxxx>
- Subject: Re: Functional programming with GLib
Am 09.05.2017 um 10:59 schrieb Tristan Van Berkom:
> On Mon, 2017-05-01 at 19:09 -0400, Matthias Clasen wrote:
>> On Thu, Apr 27, 2017 at 10:29 AM, Emmanuele Bassi <ebassi@xxxxxxxxx>
>>> For command line parsing I'd actually favour a slightly bolder
>>> approach of deprecating GOptionContext, and having something
>>> more modern — in terms of being bindable in other languages, and
>>> well-integrated with API like GApplication.
>> What is lacking in the current incarnation of commandline option
>> support in GApplication?
> Since this was raised here and I've currently been working with
> python's click library and trying to make some enhancements there, just
> thought I'd throw some things out there.
> Some things that I'm finding important for CLI apps:
> A.) Automatic generation of man pages and similar documentation,
> especially generating separate man pages for each separate sub
> I'm not even sure, do we have this already ?
You can document your man page using gtkdoc (with a PROGRAM section). More
introspection would be nice though.
> B.) Built-in support for bash completions, allowing optional overrides
> for the application to implement custom completion suggestions
> for selected options/arguments.
> This is all probably possible without completely replacing the API with
> a new one, though.
> gtk-devel-list mailing list
gtk-devel-list mailing list