MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / getOptionSortKey

Function getOptionSortKey

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

Source from the content-addressed store, hash-verified

1074 sortOptions: true;
1075 } {
1076 const getOptionSortKey = (opt: Option): string =>
1077 opt.long?.replace(/^--/, '') ?? opt.short?.replace(/^-/, '') ?? '';
1078 return Object.assign({ sortSubcommands: true, sortOptions: true } as const, {
1079 compareOptions: (a: Option, b: Option) => getOptionSortKey(a).localeCompare(getOptionSortKey(b)),
1080 });

Callers 1

createSortedHelpConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected