3 ms·
Maybe for the same reason that there's no specification for command line tool stdin/stdout aside from "text." Command line arguments are an array of null-termi
by MathMonkeyMan 4y ago
Maybe for the same reason that there's no specification for command line tool stdin/stdout aside from "text."
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".