MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / getOptionVariableName

Function getOptionVariableName

cli/src/cli/help.ts:169–173  ·  view source on GitHub ↗

Last segment of the long option name (e.g. conflict-strategy → STRATEGY).

(longName: string)

Source from the content-addressed store, hash-verified

167 if (opt.default !== undefined && opt.default !== '' && !Array.isArray(opt.default)) {
168 text = text ? `${text} (default: ${opt.default})` : `(default: ${opt.default})`;
169 }
170 return text;
171}
172
173function visibleOptions(command: Command): [string, Option][] {
174 return Object.entries(command.options || {}).filter(([name]) => !HIDDEN_OPTIONS.has(name)) as [
175 string,
176 Option,

Callers 2

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected