hare

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

commit 822c5272ef38a63d6377528adeb0cb8e5e5735d5
parent 066bcdf32c76218ea45ae848a8174f2608eb37fc
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 12 Mar 2021 09:58:24 -0500

subcmds: flesh out arguments for each

Diffstat:
Msubcmds.ha | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/subcmds.ha b/subcmds.ha @@ -86,10 +86,34 @@ fn build(args: []str) void = { }; fn run(args: []str) void = { + let help: []getopt::help = [ + "compiles and runs Hare programs", + ('v', "print executed commands"), + ('D', "ident:type=value", "define a constant"), + ('l', "name", "link with a system library"), + ('T', "tags...", "set build tags"), + ('X', "tags...", "unset build tags"), + "<path | files...>" + ]; + let cmd = getopt::parse(args, help...); + defer getopt::finish(&cmd); + abort(); // TODO }; fn test(args: []str) void = { + let help: []getopt::help = [ + "compiles and runs tests for Hare programs", + ('v', "print executed commands"), + ('D', "ident:type=value", "define a constant"), + ('l', "name", "link with a system library"), + ('T', "tags...", "set build tags"), + ('X', "tags...", "unset build tags"), + "<path | files...>", "--", "<tests...>" + ]; + let cmd = getopt::parse(args, help...); + defer getopt::finish(&cmd); + abort(); // TODO };