From e0b3712f4cd92b829b3841e4d1792dd0078d3c36 Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Sat, 27 Jun 2026 13:17:25 -0600 Subject: [PATCH] docs: clarify Sourcegraph endpoint/token are required, recommend env vars Amp-Thread-ID: https://ampcode.com/threads/T-019f0a83-3dde-76b9-9c3d-c35ef5aa63ec Co-authored-by: Amp --- src/src_py_lib/clients/sourcegraph.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/src_py_lib/clients/sourcegraph.py b/src/src_py_lib/clients/sourcegraph.py index 85b73cd..cf7c74b 100644 --- a/src/src_py_lib/clients/sourcegraph.py +++ b/src/src_py_lib/clients/sourcegraph.py @@ -160,7 +160,10 @@ class SourcegraphClientConfig(Config): env_var="SRC_ENDPOINT", cli_flag="--src-endpoint", metavar="URL", - help="Sourcegraph instance URL", + help=( + "Sourcegraph instance URL\n" + "Required as either env var or arg. Recommended to set SRC_ENDPOINT env var" + ), help_group="Sourcegraph", required=True, ) @@ -169,7 +172,10 @@ class SourcegraphClientConfig(Config): env_var="SRC_ACCESS_TOKEN", cli_flag="--src-access-token", metavar="TOKEN", - help="Sourcegraph access token, or op:// secret reference", + help=( + "Sourcegraph access token, or op:// secret reference\n" + "Required as either env var or arg. Recommended to set SRC_ACCESS_TOKEN env var" + ), help_group="Sourcegraph", secret=True, required=True,