ryantimwilson / rpms / systemd

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