]> git.corax.cc Git - toolbox/commit
include/{opt,inst}: Add regex parameter to opt_add_arg() calls
authorMatthias Kruk <m@m10k.eu>
Mon, 21 Jun 2021 23:49:42 +0000 (08:49 +0900)
committerMatthias Kruk <m@m10k.eu>
Mon, 21 Jun 2021 23:49:42 +0000 (08:49 +0900)
commitf383283e534c4afeb80405687058679f023d4c4a
treeb917f7a809fb765f381deea5cfcc4627f17b7c5e
parent5e4c3dce21e106017ba0413aa057f3ebea1e6050
include/{opt,inst}: Add regex parameter to opt_add_arg() calls

The opt and inst modules use opt_add_arg() to register command line
arguments with a callback, however they omit the newly-added regex
argument, causing the callbacks not to be called.
This commit fixes the order of arguments passed to opt_add_arg() so
that the command line arguments are registered correctly.
include/inst.sh
include/opt.sh