ko1nksm / getoptions

An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Init attribute not working for parameters

EdwardOst opened this issue · comments

I see in both the Advanced example and in the Reference that parameters accept an init attribute. My understanding was that if the parameter is specified in the commandline, then a value must be supplied. However, if the parameter is not specified in the commandline, then presumably the init value will be applied as the default value of the parameter.

However, this does not seem to be working.
example.zip

apologies for the false error report. I had used the wrong parameter definition function. feature works as expected.