mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-23 05:01:02 +03:00
c379191f80
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
9 lines
294 B
TypeScript
9 lines
294 B
TypeScript
import type { Command } from "commander";
|
|
|
|
export function hasExplicitOptions(command: Command, names: readonly string[]): boolean {
|
|
if (typeof command.getOptionValueSource !== "function") {
|
|
return false;
|
|
}
|
|
return names.some((name) => command.getOptionValueSource(name) === "cli");
|
|
}
|