MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / takeFlag

Function takeFlag

src/index.js:113–117  ·  view source on GitHub ↗
(rest, flag)

Source from the content-addressed store, hash-verified

111 if (!input && defaults.action) {
112 rest = defaults.action;
113 } else {
114 [first, rest] = splitFirst(input);
115 if (first === "--watch") {
116 intervalMs = defaults.intervalMs ?? 0;
117 rest = input;
118 } else if (first) {
119 const parsedDuration = parseDuration(first);
120 if (parsedDuration !== null)

Callers 1

parseLoopArgsFunction · 0.85

Calls 1

escapeRegExpFunction · 0.85

Tested by

no test coverage detected