MCPcopy Create free account
hub / github.com/langgenius/dify / flagDefault

Function flagDefault

cli/src/framework/help.ts:61–66  ·  view source on GitHub ↗
(def: FlagDefinition)

Source from the content-addressed store, hash-verified

59}
60
61function flagDefault(def: FlagDefinition): string {
62 if (def.default === undefined)
63 return ''
64
65 return ` [default: ${JSON.stringify(def.default)}]`
66}
67
68function renderExamples(ctor: CommandConstructor): string[] {
69 return (ctor.examples ?? []).map(ex => ex.replace('<%= config.bin %>', BIN))

Callers 1

formatHelpTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected