Re: How to accept extra command line args?
- From: James Henstridge <james daa com au>
- To: gnome-devel-list <gnome-devel-list gnome org>
- Subject: Re: How to accept extra command line args?
- Date: Wed, 24 Feb 1999 07:51:36 +0800 (WST)
If you know of every possible argument that the non-gnome part of your
program takes, you could do something like in
gnome-libs/libgnomeui/gnome-init.c to collect the arguments for gtk_init()
That is the best example I can think of.
James Henstridge.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Wed, 24 Feb 1999, Lyndon Drake wrote:
> Hi,
>
> My application has some non-Gnome command line parameters. The existing
> code parses these, but doesn't exactly leave argv in a good state (I
> didn't write this code, BTW). This precludes doing my argv parsing
> before calling gnome_init(). However, gnome_init (unlike gtk_init)
> aborts if it encounters unknown parameters.
>
> I would like to integrate my parameters into the Gnome ones, so that
> they appear in the --help output, and get parsed automagically. From
> other programs, it appears that popt is used for this. Is there any
> documentation on this, or a good example program?
>
> Thanks,
> Lyndon
>
>
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]