summaryrefslogtreecommitdiffstats
path: root/Documentation/boilerplate.c
diff options
context:
space:
mode:
authorJ William Piggott2017-06-17 21:32:28 +0200
committerJ William Piggott2017-06-21 01:50:38 +0200
commit513bfbefa29d28b086087e2c7b7b13dd37128ae0 (patch)
tree5541672ea538cc8f843e53fbd40793438d9a7d58 /Documentation/boilerplate.c
parenthwclock: update usage() FILE name (diff)
downloadkernel-qcow2-util-linux-513bfbefa29d28b086087e2c7b7b13dd37128ae0.tar.gz
kernel-qcow2-util-linux-513bfbefa29d28b086087e2c7b7b13dd37128ae0.tar.xz
kernel-qcow2-util-linux-513bfbefa29d28b086087e2c7b7b13dd37128ae0.zip
hwclock: add usage() functions heading
Make a functions heading, similar to the existing options heading. * include/c.h: define USAGE_FUNCTIONS * Documentation/boilerplate.c: add USAGE_FUNCTIONS * sys-utils/hwclock.c add functions header to usage() Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'Documentation/boilerplate.c')
-rw-r--r--Documentation/boilerplate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/boilerplate.c b/Documentation/boilerplate.c
index 7da9374d4..057893bfb 100644
--- a/Documentation/boilerplate.c
+++ b/Documentation/boilerplate.c
@@ -33,6 +33,9 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
{
fputs(USAGE_HEADER, out);
fprintf(out, _(" %s [options] file...\n"), program_invocation_short_name);
+ fputs(USAGE_FUNCTIONS, out);
+ fputs(_(" -s, --do-something some specific task\n"), out);
+ fputs(_(" -o, --do-other some different task\n"), out);
fputs(USAGE_OPTIONS, out);
fputs(_(" -n, --no-argument option does not use argument\n"), out);
fputs(_(" --optional[=<arg>] option argument is optional\n"), out);