[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] On applications using GNUnet

From: Alessio Vanni
Subject: Re: [GNUnet-developers] On applications using GNUnet
Date: Tue, 06 Aug 2019 17:00:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

Christian Grothoff <address@hidden> writes:

> Have a look at the attached os_installation.c from GNU Taler. It shows
> you how to initialize libgnunetutil to customize the --help output (at
> least some of it).  It also demonstrates how we could easily enable
> further customizations in the future, if necessary.
> For the version number, you need to call
> GNUNET_GETOPT_option_version("1.0")
> in your option list, to get --version to show '1.0'.

After reading the attached code I think I understand how it works.  I
also think it should be added to gnunet-ext too, because as it is it's
not obvious (and leads to my proposed patch...)

On the matter of the version string, I don't see why I have to redefine
it when it's a default option.  Maybe add the version string to the
ProjectData structure and have the getopt helper use it instead of
hardcoding `PACKAGE_VERSION " " VCS_REVISION'?  After all, the version
is still an information about the project.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]