]> git.corax.cc Git - toolbox/commit
include/opt: Make opt_get_argv() print arguments line-by-line
authorMatthias Kruk <m@m10k.eu>
Sun, 27 Feb 2022 08:59:27 +0000 (17:59 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 27 Feb 2022 08:59:27 +0000 (17:59 +0900)
commit672dab641a82378aa0be7b495a10720fdf537158
tree79e1d19adcb0393390f6678ce11376495a2a9cf4
parent810e81a90c85deb8c104771ce78ec1658cf855a5
include/opt: Make opt_get_argv() print arguments line-by-line

Because `opt_get_argv()` prints the entire command line in one line,
callers cannot reliably parse individual arguments from the output.

This commit modifies `opt_get_argv()` to print the arguments line-
by-line.
include/opt.sh