Let's introduce some helpers for generating uniform --help texts with some minimal ANSI styling. This shortens the help() functions generally, and allows us to change the style at a single, central place. This mostly just follows our current styling for --help, but it makes two updates to it: 1. The command line summary at the very top of the --help text is now prefixes with a grey ">" character to indicate it's a command line. 2. The human language introductionary description/abstract right after that command line is set in italics, to emphasize it's not dry, technical, structural information, but more human friendly prose.
11 lines
253 B
C
11 lines
253 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
void help_cmdline(const char *arguments);
|
|
|
|
void help_abstract(const char *text);
|
|
|
|
void help_section(const char *title);
|
|
|
|
void help_man_page_reference(const char *page, const char *section);
|