From df47c5a75054e6d2444a687825e8178311423ce8 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 4 May 2022 17:30:50 -0700 Subject: [PATCH] log-search: Update docs to include client-id as an option. --- scripts/log-search | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/log-search b/scripts/log-search index d240c183f0..04fa868498 100755 --- a/scripts/log-search +++ b/scripts/log-search @@ -24,9 +24,7 @@ from scripts.lib.zulip_tools import BOLD, CYAN, ENDC, FAIL, GRAY, OKBLUE def parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - description="Search logfiles for an IP or hostname, ignoring commonly-fetched URLs." - ) + parser = argparse.ArgumentParser(description="Search logfiles, ignoring commonly-fetched URLs.") log_selection = parser.add_argument_group("File selection") log_selection_options = log_selection.add_mutually_exclusive_group() log_selection_options.add_argument( @@ -58,7 +56,7 @@ def parser() -> argparse.ArgumentParser: ) filtering = parser.add_argument_group("Filtering") - filtering.add_argument("filter", help="IP address or hostname to search for") + filtering.add_argument("filter", help="IP address, hostname, or user-id to search for") filtering.add_argument( "--all-lines", "-L", @@ -222,7 +220,7 @@ def main() -> None: string_filter = lambda m: m["hostname"] == filter filter_type = FilterType.HOSTNAME else: - raise RuntimeError(f"Can't parse {filter} as an IP or hostname.") + raise RuntimeError(f"Can't parse {filter} as an IP, hostname, or user-id.") assert filter_type is not None try: