Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Add required @USAGE documentation to functions.
Date: Tue, 13 Dec 2016 13:59:29
Message-Id: 24aca2e0-aec0-3eba-d856-1295d34dcf00@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 1/1] kernel-2.eclass: Add required @USAGE documentation to functions. by Mike Pagano
1 On 12/13/2016 06:11 AM, Mike Pagano wrote:
2 >
3 > You're absolutely right, Mike. It was the devmanual.
4 >
5 > I'm not a fan of having an empty usage. As the devmanual is written
6 > today, it is not optional.
7 >
8
9 The devmanual is once again based on the awk script, which vaguely
10 implies that USAGE is required. For example, some other tags are optional:
11
12 # @EXAMPLE:
13 # <optional; example usage>
14
15 but the @USAGE does not say that it is:
16
17 # The format of functions:
18 # @FUNCTION: foo
19 # @USAGE: <required arguments to foo> [optional arguments to foo]
20 # @RETURN: <whatever foo returns>
21 ...
22
23 From now on, it would make more sense if the awk script conformed to the
24 devmanual rather than the other way around. I don't see any problem with
25 amending the devmanual, and then pestering the script maintainers to
26 play along.

Replies