MCPcopy Index your code
hub / github.com/continuedev/continue / getOptionalStringArg

Function getOptionalStringArg

core/tools/parseArgs.ts:104–113  ·  view source on GitHub ↗
(
  args: any,
  argName: string,
  allowEmpty = false,
)

Source from the content-addressed store, hash-verified

102}
103
104export function getOptionalStringArg(
105 args: any,
106 argName: string,
107 allowEmpty = false,
108) {
109 if (typeof args?.[argName] === "undefined") {
110 return undefined;
111 }
112 return getStringArg(args, argName, allowEmpty);
113}
114
115export function getNumberArg(args: any, argName: string): number {
116 if (!args || !(argName in args)) {

Callers 2

createRuleBlockImplFunction · 0.90

Calls 1

getStringArgFunction · 0.85

Tested by

no test coverage detected