Summary
The lookup command fails to parse when -a/--authorized-fetch flag is provided. main branch only, published cli worked well.
Expected Behavior
deno task cli lookup URL_OR_HANDLE on main branch should return the fetched results.
Actual Behavior
it returns Error: No matching option found
Environment
OS: Fedora Linux 43 (KDE Plasma Desktop Edition) x86_64
Kernel: Linux 6.17.1-300.fc43.x86_64
Shell: nushell 0.99.1
Terminal: ghostty 1.2.3-1.fc43
Logs / Screenshots
No response
Steps to Reproduce
deno task cli lookup URL_OR_HANDLE
Suggested Fix
Wrap with withDefault() to provide a default value when neither branch matches:
export const authorizedFetchOption = withDefault(
object({
authorizedFetch: map(
flag("-a", "--authorized-fetch", { ... }),
() => true as const,
),
firstKnock: withDefault(...),
tunnelService: tunnelServiceOption,
}),
{ authorizedFetch: false } as const,
);
or something else.
Affected Commands
lookup (confirmed)
- Possibly
inbox and relay (they have similar tunnelOption pattern)
Summary
The
lookupcommand fails to parse when-a/--authorized-fetchflag is provided.mainbranch only, published cli worked well.Expected Behavior
deno task cli lookup URL_OR_HANDLEonmainbranch should return the fetched results.Actual Behavior
it returns
Error: No matching option foundEnvironment
OS: Fedora Linux 43 (KDE Plasma Desktop Edition) x86_64
Kernel: Linux 6.17.1-300.fc43.x86_64
Shell: nushell 0.99.1
Terminal: ghostty 1.2.3-1.fc43
Logs / Screenshots
No response
Steps to Reproduce
deno task cli lookup URL_OR_HANDLESuggested Fix
Wrap with
withDefault()to provide a default value when neither branch matches:or something else.
Affected Commands
lookup(confirmed)inboxandrelay(they have similartunnelOptionpattern)