3 ms·
I've always assumed that there was some argument parser available that just sets things as environment variables, and that my google-fu is just too weak to find
by shaftway 4y ago
I've always assumed that there was some argument parser available that just sets things as environment variables, and that my google-fu is just too weak to find it.
Why ccouldn't I just go `source argbash _ARG_ --single option o --bool print --position positional -- $@` and get _ARG_OPTION, _ARG_PRINT, and _ARG_POSITIONAL environment variables set based on the commands passed in, without having to dump a hundred lines of code in my script?