@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
16 lines • 788 B
TypeScript
import type { OptionWord } from './types.ts';
/**
* Read one option word, or null when the word is an operand.
*
* This is bash's `set` grammar, which shell startup speaks too: a sign,
* then either `o` naming an option in the next word or a cluster of
* single-letter options, where `-` turns them on and `+` turns them off.
* `bash -x file` and `set -x` therefore cannot disagree about what `-x`
* means, and an option one of them learns the other gets.
*
* `-`, `--` and a `--long` word are not option words. The first two end
* option parsing and the third belongs to whoever declares long options,
* so both are the caller's to answer.
*/
export declare function parseOptionWord(word: string, next: string | null): OptionWord | null;
//# sourceMappingURL=options.d.ts.map