diff options
author | Sami Kerola | 2017-06-29 00:24:54 +0200 |
---|---|---|
committer | Sami Kerola | 2017-07-15 23:05:00 +0200 |
commit | f636ef1f4174dd4fb70fa8830aaceae9385c927d (patch) | |
tree | c688fa1b4739e089a0449df4adbf7d8d081f0787 | |
parent | ldattach: simplify debugging function when vwarnx(3) is available (diff) | |
download | kernel-qcow2-util-linux-f636ef1f4174dd4fb70fa8830aaceae9385c927d.tar.gz kernel-qcow2-util-linux-f636ef1f4174dd4fb70fa8830aaceae9385c927d.tar.xz kernel-qcow2-util-linux-f636ef1f4174dd4fb70fa8830aaceae9385c927d.zip |
docs: add optional option back to struct option
The line was accidentally removed in the reference commit where only the
short option had to go. Rest of the change is indentation.
Reference: 326c5c93b917a623f346155c8b3438b379d9fd60
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
-rw-r--r-- | Documentation/boilerplate.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/boilerplate.c b/Documentation/boilerplate.c index 68ffbf7ea..a92f7f097 100644 --- a/Documentation/boilerplate.c +++ b/Documentation/boilerplate.c @@ -69,14 +69,15 @@ int main(int argc, char **argv) OPT_OPTIONAL /* see howto-man-page.txt about short option */ }; static const struct option longopts[] = { - { "no-argument", no_argument, NULL, 'n' }, - { "required", required_argument, NULL, 'r' }, - { "extremely-long-long-option", no_argument, NULL, 'e' }, - { "xyzzy", no_argument, NULL, OPT_XYZZY }, - { "long-explanation", no_argument, NULL, 'l' }, - { "foobar", no_argument, NULL, 'f' }, - { "version", no_argument, NULL, 'V' }, - { "help", no_argument, NULL, 'h' }, + { "no-argument", no_argument, NULL, 'n' }, + { "optional", optional_argument, NULL, OPT_OPTIONAL }, + { "required", required_argument, NULL, 'r' }, + { "extremely-long-long-option", no_argument, NULL, 'e' }, + { "xyzzy", no_argument, NULL, OPT_XYZZY }, + { "long-explanation", no_argument, NULL, 'l' }, + { "foobar", no_argument, NULL, 'f' }, + { "version", no_argument, NULL, 'V' }, + { "help", no_argument, NULL, 'h' }, { NULL, 0, NULL, 0 } }; |