]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
subcommand: Fix and document return value of gsu_complete_options().
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Apr 2017 14:19:38 +0000 (16:19 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 30 Nov 2017 09:39:46 +0000 (10:39 +0100)
The value returned in $ret was undocumented so far. And it did not
make sense either: We used to return 0 if the current word does not
start with a hyphen, and the number of options in the given optstring
otherwise. Hence the value of zero is ambiguous.

Nobody needs the number of options anyway, so let's simply return 0
or 1, and document this.


No differences found