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

Function visibleOptions

cli/src/cli/help.ts:161–166  ·  view source on GitHub ↗
(command: Command)

Source from the content-addressed store, hash-verified

159 .map(({ value, help }) => ` * ${value}: ${help}`)
160 .join('\n');
161 text = text ? `${text} Values:\n${allowed}` : `Values:\n${allowed}`;
162 }
163 }
164 if (opt.multiple) {
165 text = text ? `${text} May be repeated.` : 'May be repeated.';
166 }
167 if (opt.default !== undefined && opt.default !== '' && !Array.isArray(opt.default)) {
168 text = text ? `${text} (default: ${opt.default})` : `(default: ${opt.default})`;
169 }

Callers 2

printCommandUsageFunction · 0.85
buildCommandSynopsisFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected