]> git.corax.cc Git - toolbox/commit
include/opt: Initialize value of options that don't have a value
authorMatthias Kruk <m@m10k.eu>
Thu, 11 Aug 2022 18:14:19 +0000 (03:14 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 11 Aug 2022 18:14:19 +0000 (03:14 +0900)
commit8efd23d2548e1aebf0d7a36bf065ddf3c0b9dbba
tree26d79ad728c831bcdc1245486d00f2425d7c0d5b
parenteee92af5da5e8c7f9c18e4c71f9714254a041f3c
include/opt: Initialize value of options that don't have a value

The opt module uses the value of options that aren't followed by a
parameter to count how often the option was on the command line.
However, in this case it never initializes the value.

This commit modifies the opt module so that it initializes the
value of options that are not followed by a parameter to 0.
include/opt.sh