Download src/cli/command-options.ts from shimen/shinclaw: direct link, hf CLI and curl.
- Browser
- Download file 294 Bytes
-
https://huggingface.co/spaces/shimen/shinclaw/resolve/main/src/cli/command-options.ts
- Command line
-
hf download hf://spaces/shimen/shinclaw/src/cli/command-options.ts
-
curl -L -o command-options.ts https://huggingface.co/spaces/shimen/shinclaw/resolve/main/src/cli/command-options.ts
294 Bytes
| 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"); | |
| } | |