From 7f233fd893b9ec29dbd99007f0b48e347882c718 Mon Sep 17 00:00:00 2001 From: Joachim Metz Date: Wed, 5 Jan 2022 15:03:43 +0100 Subject: [PATCH] Code clean up and worked on documentation --- docs/sources/EventLog-keys.md | 6 +++--- scripts/eventlog_providers.py | 7 +++---- scripts/shellfolders.py | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/sources/EventLog-keys.md b/docs/sources/EventLog-keys.md index dc29b4b..3543f87 100644 --- a/docs/sources/EventLog-keys.md +++ b/docs/sources/EventLog-keys.md @@ -64,8 +64,8 @@ for example for the "Workstation" EventLog source: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\System\Workstation\ ``` -Note that the source name is case insensitive; so "Workstation" and -"workstation" are considered equivalent. +Note that the log source is case insensitive; so "Workstation" and "workstation" +are considered equivalent. ### Services\EventLog type sub key @@ -127,7 +127,7 @@ Values: Name | Data type | Description --- | --- | --- -(default) | | name of the event source +(default) | | Case insensitive log source. MessageFileName | | Path to an event message file. An event message file contains language-dependent strings that describe the events. ResourceFileName | | Path to an event resource file. diff --git a/scripts/eventlog_providers.py b/scripts/eventlog_providers.py index e7d17ea..7f53cea 100755 --- a/scripts/eventlog_providers.py +++ b/scripts/eventlog_providers.py @@ -75,10 +75,9 @@ def Main(): argument_parser.add_argument( 'source', nargs='?', action='store', metavar='PATH', default=None, - help=( - 'path of the volume containing C:\\Windows, the filename of ' - 'a storage media image containing the C:\\Windows directory, ' - 'or the path of a SOFTWARE or SYSTEM Registry file.')) + help=('path of the volume containing C:\\Windows, the filename of ' + 'a storage media image containing the C:\\Windows directory, ' + 'or the path of a SOFTWARE or SYSTEM Registry file.')) options = argument_parser.parse_args() diff --git a/scripts/shellfolders.py b/scripts/shellfolders.py index 3fa4fd4..82f3352 100755 --- a/scripts/shellfolders.py +++ b/scripts/shellfolders.py @@ -152,9 +152,9 @@ def Main(): default=None, help='path of the sqlite3 database to write to.') argument_parser.add_argument( - '--winver', dest='windows_version', action='store', metavar='xp', - default=None, help=( - 'string that identifies the Windows version in the database.')) + '-w', '--windows_version', '--windows-version', + dest='windows_version', action='store', metavar='Windows XP', + default=None, help='string that identifies the Windows version.') argument_parser.add_argument( 'source', nargs='?', action='store', metavar='PATH', default=None,