hare

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

commit 5ec3eed055db50e4373b96421fc850649a4e180d
parent 3d07c9cecfcbf98e264220cee1f6507f6e06cc06
Author: Alexey Yerin <yyp@disroot.org>
Date:   Sun, 24 Oct 2021 12:41:25 +0300

getopt: update switch syntax in example

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

Diffstat:
Mgetopt/getopts.ha | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/getopt/getopts.ha b/getopt/getopts.ha @@ -89,11 +89,15 @@ export type help = (cmd_help | flag_help | parameter_help); // for (let i = 0z; i < len(cmd.opts); i += 1) { // let opt = cmd.opts[i]; // switch (opt.0) { -// 'E' => extended = true, -// 's' => continuous = false, -// // ... -// 'e' => script = opt.1, -// 'f' => file = opt.1, +// case 'E' => +// extended = true; +// case 's' => +// continuous = false; +// // ... +// case 'e' => +// script = opt.1; +// case 'f' => +// file = opt.1; // }; // }; //