Sign up

Command Line processing

Has anyone any experience of, or better yet have examples of, using addOnHandleLocalOptions and addOnCommandLine to do command line processing for a GtkD application using Gtk.Application?

(I believe the GtkD demos directory is, sadly, lacking in any examples of doing this sort of thing.)

(Yes I know GTK+ applications are supposed to launch without any command line processing, and indeed Rust has failed to provide access to these methods, but OpenGL with some hardware requires a non-default choice at launch time.)

Re: Command Line processing

On 06-11-17 09:02, Russel Winder wrote:

Has anyone any experience of, or better yet have examples of, using addOnHandleLocalOptions and addOnCommandLine to do command line processing for a GtkD application using Gtk.Application?

(I believe the GtkD demos directory is, sadly, lacking in any examples of doing this sort of thing.)

(Yes I know GTK+ applications are supposed to launch without any command line processing, and indeed Rust has failed to provide access to these methods, but OpenGL with some hardware requires a non-default choice at launch time.)

The only one i know of is tilix:

https://github.com/gnunn1/tilix/blob/master/source/gx/tilix/application.d#L381

Re: Command Line processing

On Mon, 6 Nov 2017 19:03:31 +0100, Mike Wey wrote:
[…]

The only one i know of is tilix:

https://github.com/gnunn1/tilix/blob/master/source/gx/tilix/application.d#L381

Aha, of course. That will do very nicely. Thanks for the pointer. And many thanks to Gerald for doing the "leg work".