summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-08 17:58:44 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-08 18:21:26 +0200
commite1fac8a68a0d1fe01edf47e149afb3f232bd75b6 (patch)
tree1e9913853ee27392dba74ffb491a96cc8c18d5e5 /src/network/networkctl.c
parentMerge pull request #13746 from keszybz/tests-reduce-boilerplate (diff)
downloadsystemd-e1fac8a68a0d1fe01edf47e149afb3f232bd75b6.tar.xz
systemd-e1fac8a68a0d1fe01edf47e149afb3f232bd75b6.zip
Move the Commands section above Options section
For executables which take a verb, we should list the verbs first, and then options which modify those verbs second. The general layout of the man page is from general description to specific details, usually Overview, Commands, Options, Return Value, Examples, References.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index d087e43eb3..5efaf47b7f 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -1750,13 +1750,7 @@ static int help(void) {
return log_oom();
printf("%s [OPTIONS...]\n\n"
- "Query and control the networking subsystem.\n\n"
- " -h --help Show this help\n"
- " --version Show package version\n"
- " --no-pager Do not pipe output into a pager\n"
- " --no-legend Do not show the headers and footers\n"
- " -a --all Show status for all links\n"
- " -s --stats Show detailed link statics\n"
+ "Query and control the networking subsystem.\n"
"\nCommands:\n"
" list [PATTERN...] List links\n"
" status [PATTERN...] Show link status\n"
@@ -1764,6 +1758,13 @@ static int help(void) {
" label Show current address label entries in the kernel\n"
" delete DEVICES.. Delete virtual netdevs\n"
" renew DEVICES.. Renew dynamic configurations\n"
+ "\nOptions\n"
+ " -h --help Show this help\n"
+ " --version Show package version\n"
+ " --no-pager Do not pipe output into a pager\n"
+ " --no-legend Do not show the headers and footers\n"
+ " -a --all Show status for all links\n"
+ " -s --stats Show detailed link statics\n"
"\nSee the %s for details.\n"
, program_invocation_short_name
, link