[systemd-devel] [PATCH 2/2] journalctl: indent line-wrapped descriptions in --help message
Jason St. John
jstjohn at purdue.edu
Tue Dec 17 18:36:28 PST 2013
It's difficult to read the --help text when there are no indents for
line-wrapped descriptions, so add indenting to provide a visual cue.
---
I used an eight-space indent to match the coding style for systemd. If this is
too much indentation space, I can resubmit with four-space indents or whatever
else you feel is more appropriate.
src/journal/journalctl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index 57c0856..d5dcfbc 100644
--- a/src/journal/journalctl.c
+++ b/src/journal/journalctl.c
@@ -145,13 +145,13 @@ static int help(void) {
" -p --priority=RANGE Show only messages within the specified priority range\n"
" -e --pager-end Immediately jump to end of the journal in the pager\n"
" -f --follow Show only the most recent journal entries, and\n"
- " continuously print new entries as they are added\n"
+ " continuously print new entries as they are added\n"
" -n --lines[=INTEGER] Number of journal entries to show\n"
" --no-tail Show all lines, even in follow mode\n"
" -r --reverse Show the newest entries first\n"
" -o --output=STRING Change journal output mode (short, short-iso,\n"
- " short-precise, short-monotonic, verbose,\n"
- " export, json, json-pretty, json-sse, cat)\n"
+ " short-precise, short-monotonic, verbose,\n"
+ " export, json, json-pretty, json-sse, cat)\n"
" -x --catalog Add message explanations where available\n"
" --no-full Ellipsize fields\n"
" -a --all Show all fields, including long and unprintable\n"
@@ -163,7 +163,7 @@ static int help(void) {
" --root=ROOT Operate on catalog files underneath the root ROOT\n"
#ifdef HAVE_GCRYPT
" --interval=TIME Time interval for changing the\n"
- " Forward Secure Sealing (FSS) sealing key\n"
+ " Forward Secure Sealing (FSS) sealing key\n"
" --verify-key=KEY Specify FSS verification key\n"
" --force Force overriding new FSS key pair with --setup-keys\n"
#endif
--
1.8.5.1
More information about the systemd-devel
mailing list