by MathMonkeyMan · 3y ago · 0 comments
Command line arguments are an array of null-terminated strings, as is the environment (at least there we have the convention "<key>=<value>").
It might be neat to define a schema language together with a validator that takes a schema and a "style" and then validates an array of strings. e.g. "validate gnu myschema.ext -- subcommand --flag -etc --thing=value arg arg".
No comments yet.