MCPcopy Index your code
hub / github.com/itwanger/toBeBetterJavaer / requireValue

Function requireValue

scripts/sync-sidebar.js:92–98  ·  view source on GitHub ↗
(argv, index)

Source from the content-addressed store, hash-verified

90}
91
92function requireValue(argv, index) {
93 const value = argv[index + 1];
94 if (!value || value.startsWith("-")) {
95 throw new Error(`Missing value for ${argv[index]}`);
96 }
97 return value;
98}
99
100function normalizeRoute(route) {
101 if (!route.startsWith("/")) {

Callers 1

parseArgsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected