summaryrefslogtreecommitdiffstats
path: root/Documentation/howto-usage-function.txt
diff options
context:
space:
mode:
authorJ William Piggott2017-06-18 19:31:36 +0200
committerJ William Piggott2017-06-21 01:56:39 +0200
commit2671bcd6546b16845e69776cb8bde1f6aa61bf7a (patch)
tree258c9c9e11830e203b3d1fbd0c8e0b65f9fdb448 /Documentation/howto-usage-function.txt
parenthwclock: add --update-drift check (diff)
downloadkernel-qcow2-util-linux-2671bcd6546b16845e69776cb8bde1f6aa61bf7a.tar.gz
kernel-qcow2-util-linux-2671bcd6546b16845e69776cb8bde1f6aa61bf7a.tar.xz
kernel-qcow2-util-linux-2671bcd6546b16845e69776cb8bde1f6aa61bf7a.zip
Docs: update howto-usage-function.txt
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'Documentation/howto-usage-function.txt')
-rw-r--r--Documentation/howto-usage-function.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/howto-usage-function.txt b/Documentation/howto-usage-function.txt
index 54d3084cb..8da8debe5 100644
--- a/Documentation/howto-usage-function.txt
+++ b/Documentation/howto-usage-function.txt
@@ -10,8 +10,7 @@ other purpose:
The rule of thumb with other options is that once they exist, you may
not change them, nor change how they work, nor remove them.
-Notice that '-?' is not expected to be a synonym of '--help', but is an
-unknown option resulting in a usage print-out due to a getopt failure.
+See Legacy options below.
How a usage text is supposed to look
@@ -118,6 +117,7 @@ entail for translators will pay off later, at the time of the next change,
when they will not need to search in the long fuzzy text what was changed,
where, how, and whether it was the only change.
+
Synopsis
--------
@@ -143,13 +143,15 @@ Some commands use peculiar options and arguments. These will continue
to be supported, but anything like them will not be accepted as new
additions. A short list of examples:
-- Other characters than '-' to start an option. See '+' in 'more'.
-- Using a number as an option argument. See '-<number>' in 'more'.
+- Characters other than '-' to start an option. See '+' in 'more'.
+- Using a number as an option. See '-<number>' in 'more'.
- Long options that start with a single '-'. See 'setterm'.
+- '-?' is not expected to be a synonym of '--help', but is an unknown
+ option resulting in a suggestion to try --help due to a getopt failure.
Example file
------------
-The file disk-utils/delpart.c is a minimal example of how to write
+The file ./boilerplate.c is a minimal example of how to write
a usage function, set up option parsing, version printing and so on.