MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / readInlineOptionValue

Function readInlineOptionValue

node/cli.js:79–85  ·  view source on GitHub ↗
(arg, option)

Source from the content-addressed store, hash-verified

77}
78
79function readInlineOptionValue(arg, option) {
80 const value = arg.slice((option + '=').length);
81 if (!value) {
82 throw new Error(`Missing value for ${option}`);
83 }
84 return value;
85}
86
87function parseArgs(args) {
88 const options = {

Callers 1

parseArgsFunction · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected