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