]> git.corax.cc Git - toolbox/commit
include/opt: Remember arguments passed to opt_parse()
authorMatthias Kruk <m@m10k.eu>
Thu, 15 Apr 2021 13:28:08 +0000 (22:28 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 15 Apr 2021 13:28:08 +0000 (22:28 +0900)
commitb453adb88c2c8331c8568b44c34716460bceb115
tree4345324703ea04ea95f75fab43c19212ff66ae59
parent53caecde2f3adf1a5049c49bc8e5219217187db6
include/opt: Remember arguments passed to opt_parse()

To allow the user to distinguish running instances of a script, it is
necessary to present the arguments that an instance was started with.
The most logical place to remember such information is inside the opt
module. Therefore, this commit adds the opt_get_argv() function, which
allows the caller to retrieve the arguments that were passed to the
opt_parse() function.
include/opt.sh