Zbigniew Jędrzejewski-Szmek 126222
From 643f82598b69d3b3002294a456a459cceb075cd3 Mon Sep 17 00:00:00 2001
Zbigniew Jędrzejewski-Szmek 126222
From: "Jason St. John" <jstjohn@purdue.edu>
Zbigniew Jędrzejewski-Szmek 126222
Date: Tue, 17 Dec 2013 21:36:27 -0500
Zbigniew Jędrzejewski-Szmek 126222
Subject: [PATCH] journalctl,zsh-completion: fix several issues in --help
Zbigniew Jędrzejewski-Szmek 126222
 message text
Zbigniew Jędrzejewski-Szmek 126222
Zbigniew Jędrzejewski-Szmek 126222
-- fix grammar and reword some descriptions for clarity
Zbigniew Jędrzejewski-Szmek 126222
-- add a useful description of what --follow does
Zbigniew Jędrzejewski-Szmek 126222
-- fix the description for --after-cursor
Zbigniew Jędrzejewski-Szmek 126222
-- properly introduce the FSS acronym for "Forward Secure Sealing" in
Zbigniew Jędrzejewski-Szmek 126222
both sections
Zbigniew Jędrzejewski-Szmek 126222
-- clarify the --disk-usage command
Zbigniew Jędrzejewski-Szmek 126222
Zbigniew Jędrzejewski-Szmek 126222
[zj: perform similar changes to zsh completions]
Zbigniew Jędrzejewski-Szmek 126222
Zbigniew Jędrzejewski-Szmek 126222
squash! journalctl: fix several issues in --help message text
Zbigniew Jędrzejewski-Szmek 126222
Zbigniew Jędrzejewski-Szmek 126222
Conflicts:
Zbigniew Jędrzejewski-Szmek 126222
	src/journal/journalctl.c
Zbigniew Jędrzejewski-Szmek 126222
---
Zbigniew Jędrzejewski-Szmek 126222
 shell-completion/zsh/_journalctl | 14 +++++++-------
Zbigniew Jędrzejewski-Szmek 126222
 src/journal/journalctl.c         | 34 +++++++++++++++++-----------------
Zbigniew Jędrzejewski-Szmek 126222
 2 files changed, 24 insertions(+), 24 deletions(-)
Zbigniew Jędrzejewski-Szmek 126222
Zbigniew Jędrzejewski-Szmek 126222
diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek 126222
index 29ff3e3..8c3dbb0 100644
Zbigniew Jędrzejewski-Szmek 126222
--- a/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek 126222
+++ b/shell-completion/zsh/_journalctl
Zbigniew Jędrzejewski-Szmek 126222
@@ -71,14 +71,14 @@ _arguments -s \
Zbigniew Jędrzejewski-Szmek 126222
     {-m,--merge}'[Show entries from all available journals]' \
Zbigniew Jędrzejewski-Szmek 126222
     {-b+,--boot=}'[Show data only from the specified boot or offset]:boot id or offset:_journal_boots' \
Zbigniew Jędrzejewski-Szmek 126222
     '--list-boots[List boots ordered by time]' \
Zbigniew Jędrzejewski-Szmek 126222
-    {-k,--dmesg}'[Show only kernel messages, Implies -b]' \
Zbigniew Jędrzejewski-Szmek 126222
+    {-k,--dmesg}'[Show only kernel messages from the current boot]' \
Zbigniew Jędrzejewski-Szmek 126222
     {-u+,--unit=}'[Show data only from the specified unit]:units:_journal_fields _SYSTEMD_UNIT' \
Zbigniew Jędrzejewski-Szmek 126222
     '--user-unit=[Show data only from the specified user session unit]:units:_journal_fields USER_UNIT' \
Zbigniew Jędrzejewski-Szmek 126222
     {-p+,--priority=}'[Show only messages within the specified priority range]:priority:_journal_fields PRIORITY' \
Zbigniew Jędrzejewski-Szmek 126222
-    {-c+,--cursor=}'[Start showing entries from specified cursor]:cursors:_journal_fields __CURSORS' \
Zbigniew Jędrzejewski-Szmek 126222
-    '--after-cursor=[Start showing entries from the location in the journal after the cursor]:cursors:_journal_fields __CURSORS' \
Zbigniew Jędrzejewski-Szmek 126222
-    '--since=[Start showing entries newer or of the specified date]:YYYY-MM-DD HH\:MM\:SS' \
Zbigniew Jędrzejewski-Szmek 126222
-    '--until=[Stop showing entries older or of the specified date]:YYYY-MM-DD HH\:MM\:SS' \
Zbigniew Jędrzejewski-Szmek 126222
+    {-c+,--cursor=}'[Start showing entries from the specified cursor]:cursors:_journal_fields __CURSORS' \
Zbigniew Jędrzejewski-Szmek 126222
+    '--after-cursor=[Start showing entries from after the specified cursor]:cursors:_journal_fields __CURSORS' \
Zbigniew Jędrzejewski-Szmek 126222
+    '--since=[Start showing entries on or newer than the specified date]:YYYY-MM-DD HH\:MM\:SS' \
Zbigniew Jędrzejewski-Szmek 126222
+    '--until=[Stop showing entries on or older than the specified date]:YYYY-MM-DD HH\:MM\:SS' \
Zbigniew Jędrzejewski-Szmek 126222
     {-F,--field=}'[List all values a certain field takes]:Fields:_list_fields' \
Zbigniew Jędrzejewski-Szmek 126222
     '--system[Show system and kernel messages]' \
Zbigniew Jędrzejewski-Szmek 126222
     '--user[Show messages from user services]' \
Zbigniew Jędrzejewski-Szmek 126222
@@ -91,8 +91,8 @@ _arguments -s \
Zbigniew Jędrzejewski-Szmek 126222
     '--list-catalog[List messages in catalog]' \
Zbigniew Jędrzejewski-Szmek 126222
     '--dump-catalog[Dump messages in catalog]' \
Zbigniew Jędrzejewski-Szmek 126222
     '--update-catalog[Update binary catalog database]' \
Zbigniew Jędrzejewski-Szmek 126222
-    '--setup-keys[Generate new FSS key pair]' \
Zbigniew Jędrzejewski-Szmek 126222
-    '--force[Force recreation of FSS keys]' \
Zbigniew Jędrzejewski-Szmek 126222
+    '--setup-keys[Generate a new FSS key pair]' \
Zbigniew Jędrzejewski-Szmek 126222
+    '--force[Force recreation of the FSS keys]' \
Zbigniew Jędrzejewski-Szmek 126222
     '--interval=[Time interval for changing the FSS sealing key]:time interval' \
Zbigniew Jędrzejewski-Szmek 126222
     '--verify[Verify journal file consistency]' \
Zbigniew Jędrzejewski-Szmek 126222
     '--verify-key=[Specify FSS verification key]:FSS key' \
Zbigniew Jędrzejewski-Szmek 126222
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
Zbigniew Jędrzejewski-Szmek 126222
index 71e28b0..1d66792 100644
Zbigniew Jędrzejewski-Szmek 126222
--- a/src/journal/journalctl.c
Zbigniew Jędrzejewski-Szmek 126222
+++ b/src/journal/journalctl.c
Zbigniew Jędrzejewski-Szmek 126222
@@ -130,30 +130,30 @@ static int help(void) {
Zbigniew Jędrzejewski-Szmek 126222
                "Query the journal.\n\n"
Zbigniew Jędrzejewski-Szmek 126222
                "Flags:\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --system              Show only the system journal\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --user                Show only the user journal for current user\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --since=DATE          Start showing entries newer or of the specified date\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --until=DATE          Stop showing entries older or of the specified date\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -c --cursor=CURSOR       Start showing entries from specified cursor\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --after-cursor=CURSOR Start showing entries from specified cursor\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --user                Show only the user journal for the current user\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --since=DATE          Start showing entries on or newer than the specified date\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --until=DATE          Stop showing entries on or older than the specified date\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -c --cursor=CURSOR       Start showing entries from the specified cursor\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --after-cursor=CURSOR Start showing entries from after the specified cursor\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --show-cursor         Print the cursor after all the entries\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -b --boot[=ID]           Show data only from ID or current boot if unspecified\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -b --boot[=ID]           Show data only from ID or, if unspecified, the current boot\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --list-boots          Show terse information about recorded boots\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -k --dmesg               Show kernel message log from current boot\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -k --dmesg               Show kernel message log from the current boot\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -u --unit=UNIT           Show data only from the specified unit\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --user-unit=UNIT      Show data only from the specified user session unit\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -p --priority=RANGE      Show only messages within the specified priority range\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -e --pager-end           Immediately jump to end of the journal in the pager\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -f --follow              Follow journal\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -f --follow              Follow the journal\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -n --lines[=INTEGER]     Number of journal entries to show\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --no-tail             Show all lines, even in follow mode\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -r --reverse             Show the newest entries first\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -o --output=STRING       Change journal output mode (short, short-iso,\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "                           short-precise, short-monotonic, verbose,\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "                           export, json, json-pretty, json-sse, cat)\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "                                   short-precise, short-monotonic, verbose,\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "                                   export, json, json-pretty, json-sse, cat)\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -x --catalog             Add message explanations where available\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -l --full                Do not ellipsize fields\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -a --all                 Show all fields, including long and unprintable\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -q --quiet               Don't show privilege warning\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -q --quiet               Do not show privilege warning\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --no-pager            Do not pipe output into a pager\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -m --merge               Show entries from all available journals\n"
Zbigniew Jędrzejewski-Szmek 126222
                "  -D --directory=PATH      Show journal files from directory\n"
Zbigniew Jędrzejewski-Szmek 126222
@@ -162,20 +162,20 @@ static int help(void) {
Zbigniew Jędrzejewski-Szmek 126222
 #ifdef HAVE_GCRYPT
Zbigniew Jędrzejewski-Szmek 126222
                "     --interval=TIME       Time interval for changing the FSS sealing key\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --verify-key=KEY      Specify FSS verification key\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --force               Force overriding new FSS key pair with --setup-keys\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --force               Force overriding of the FSS key pair with --setup-keys\n"
Zbigniew Jędrzejewski-Szmek 126222
 #endif
Zbigniew Jędrzejewski-Szmek 126222
                "\nCommands:\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -h --help                Show this help\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -h --help                Show this help text\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --version             Show package version\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --new-id128           Generate a new 128 Bit ID\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --new-id128           Generate a new 128-bit ID\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --header              Show journal header information\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "     --disk-usage          Show total disk usage\n"
Zbigniew Jędrzejewski-Szmek 126222
-               "  -F --field=FIELD         List all values a certain field takes\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --disk-usage          Show total disk usage of all journal files\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "  -F --field=FIELD         List all values that a specified field takes\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --list-catalog        Show message IDs of all entries in the message catalog\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --dump-catalog        Show entries in the message catalog\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --update-catalog      Update the message catalog database\n"
Zbigniew Jędrzejewski-Szmek 126222
 #ifdef HAVE_GCRYPT
Zbigniew Jędrzejewski-Szmek 126222
-               "     --setup-keys          Generate new FSS key pair\n"
Zbigniew Jędrzejewski-Szmek 126222
+               "     --setup-keys          Generate a new FSS key pair\n"
Zbigniew Jędrzejewski-Szmek 126222
                "     --verify              Verify journal file consistency\n"
Zbigniew Jędrzejewski-Szmek 126222
 #endif
Zbigniew Jędrzejewski-Szmek 126222
                , program_invocation_short_name);