[Geany] Dealing with unknown command line options

Michal Kurgan michal.kurgan at xxxxx
Wed Dec 19 23:22:49 UTC 2007


On Wed, 19 Dec 2007 15:59:12 -0600
"Jeff Pohlmeyer" <yetanothergeek at gmail.com> wrote:

> On Dec 19, 2007 7:55 AM, Enrico Tröger <enrico.troeger at uvena.de> wrote:
> 
> > I didn't find a way to get geany --version
> > running on a text console.
> 
> Ooops, I had not thought of that one...
> 
> What if you first do a simple loop through the command
> line options, and if you find one of these:
> 
>  --ft-names
>  --print-prefix
>  -v
>  --version
> 
> Just print the requested information and exit,
> so glib/gtk will never "see" the option.
> 
>  - Jeff
>

Better use "gtk_init_check" to not force termination or
"gtk_get_option_group" to get gtk specific command line options for use with
"g_option_context_parse".

-- 
Michal Kurgan





More information about the Users mailing list