Skip to content

Commit 8cd14c9

Browse files
committed
Clarify scope of -p/--allow-private-address in lookup help
The option's help text now notes that it only has an effect when combined with -t/--traverse or --recurse, since URLs explicitly provided on the command line always allow private addresses. #696 #698 Assisted-by: Claude Code:claude-opus-4-7
1 parent c31d2f2 commit 8cd14c9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/cli/src/lookup.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,10 @@ const suppressErrorsOption = bindConfig(
8484
const allowPrivateAddressOption = bindConfig(
8585
flag("-p", "--allow-private-address", {
8686
description: message`Allow private IP addresses for URLs discovered \
87-
via traversal or recursion. URLs explicitly provided \
88-
on the command line always allow private addresses.`,
87+
via traversal or recursion. This option only has an effect \
88+
when used together with ${optionNames(["-t", "--traverse"])} \
89+
or ${optionNames(["--recurse"])}, since URLs explicitly \
90+
provided on the command line always allow private addresses.`,
8991
}),
9092
{
9193
context: configContext,

0 commit comments

Comments
 (0)