MCPcopy Create free account
hub / github.com/Noumena-Network/code / getOptionSortKey

Function getOptionSortKey

src/main.tsx:956–956  ·  view source on GitHub ↗
(opt: Option)

Source from the content-addressed store, hash-verified

954 sortOptions: true;
955 } {
956 const getOptionSortKey = (opt: Option): string => opt.long?.replace(/^--/, '') ?? opt.short?.replace(/^-/, '') ?? '';
957 return Object.assign({
958 sortSubcommands: true,
959 sortOptions: true

Callers 1

createSortedHelpConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected