ryantimwilson / rpms / systemd

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