[Gambas-user] Unknown CLI options 3.16, trapping of
bb
adamnt42 at gmail.com
Fri Aug 27 22:06:50 CEST 2021
On Fri, 2021-08-27 at 13:07 +0200, Benoît Minisini wrote:
> Le 27/08/2021 à 12:54, Benoît Minisini a écrit :
> > Le 27/08/2021 à 12:35, bb a écrit :
> > > On Fri, 2021-08-27 at 12:28 +0200, Benoît Minisini wrote:
> > > > Le 27/08/2021 à 12:21, bb a écrit :
> > > > > With the new(ish) 3.16 gb.args component is there any way to
> > > > > trap
> > > > > "unknown" CLI options rather than the project just exiting
> > > > > with
> > > > > status
> > > > > 1?
> > > > >
> > > > > tia
> > > > > bruce
> > > > >
> > > > >
> > > > > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> > > > >
> > > >
> > > > What for?
> > > >
> > > We are having a lot of trouble with desktop files. I just want to
> > > be
> > > able to tell the user that something is awry.
> > >
> > > If an application is installed and present in a menu (and the
> > > menu
> > > desktop file is not right) then all the user sees when they click
> > > on
> > > the menu is
> > >
> > > (that was an Australian joke meaning "nothing".)
> > >
> > > b
> > >
> >
> > Command-line options are normally for programs running from... the
> > command-line.
> >
> > I will add an option to not abort.
> >
> > Regards,
> >
>
> Done in last commit.
>
Thanks Benoît,
That is much better (for paddys-hill).
Another use case is when one gambas project is calling another. In
which case I have to look at the arguments as well as the options. This
also works much better now.
How is the website redesign going?
regards
bruce
More information about the User
mailing list