hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 5a4ab37b3f0efd141fc3929400b88b04b5aa8c40
parent 4c82f02d849e82bfa50fb188cb8d41422a5d8716
Author: Alexey Yerin <yyp@disroot.org>
Date:   Mon, 23 Aug 2021 17:43:11 +0300

getopt: fix typo

It was supposed to be args[0].

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mgetopt/getopts.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/getopt/getopts.ha b/getopt/getopts.ha @@ -159,7 +159,7 @@ export fn parse(args: []str, help: help...) command = { rune => abort(), // Unreachable void => void, (utf8::more | utf8::invalid) => { - errmsg(args[9], "invalid UTF-8 in arguments", + errmsg(args[0], "invalid UTF-8 in arguments", void, help); os::exit(1); },