Open Commons ObservatoryEnglish·Русский

Research

What was looked at before acting: the question, what was found, and what it rests on.

How have others let a declared command line take values that are known only when the program runs - and offer them as one types?

Two established shapes. clap's dynamic engine: the shell calls the program through the environment and the program answers; its weakness is that a value's function sees only the word being typed. usage (jdx): a declared spec with values either listed or built by running a command, and completions that call back at runtime - the same split we came to, declared or asked. Neither has what argenv is for: the declaration being the typed accessor itself, so it cannot drift from the code. Within the commons, checked the same day: argenv makes no completions; snapall and lab-agent each generate their own from their contract, and oco-agent types its usage text by hand - one nature, written three times. And argenv has no typed accessor for a list at all: no program of ours uses one.

2026-11-13

Other sources