hare

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

commit 34dde44303983664c73f3b56a59c7cd01bae57c1
parent fff2addff294dd1df0a6cf64f1261c294ce8869b
Author: Sebastian LaVine <mail@smlavine.com>
Date:   Mon, 16 May 2022 17:35:02 -0400

Provide more descriptive "not implemented" abort messages

Signed-off-by: Sebastian LaVine <mail@smlavine.com>

Diffstat:
Mcmd/hare/subcmds.ha | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha @@ -106,13 +106,13 @@ fn build(args: []str) void = { case 'D' => append(defines, opt.1); case 'j' => - abort(); // TODO + abort("-j option not implemented yet."); // TODO case 'l' => append(libs, opt.1); case 'o' => output = opt.1; case 't' => - abort(); // TODO + abort("-t option not implemented yet."); // TODO case 'T' => tags = match (addtags(tags, opt.1)) { case void => @@ -195,7 +195,7 @@ fn cache(args: []str) void = { const cmd = getopt::parse(args, help...); defer getopt::finish(&cmd); - abort(); // TODO + abort("cache subcommand not implemented yet."); // TODO }; fn deps(args: []str) void = { @@ -210,7 +210,7 @@ fn deps(args: []str) void = { const cmd = getopt::parse(args, help...); defer getopt::finish(&cmd); - abort(); // TODO + abort("deps subcommand not implemented yet."); // TODO }; fn release(args: []str) void = { @@ -301,11 +301,11 @@ fn run(args: []str) void = { case 'D' => append(defines, opt.1); case 'j' => - abort(); // TODO + abort("-j option not implemented yet."); // TODO case 'l' => append(libs, opt.1); case 't' => - abort(); // TODO + abort("-t option not implemented yet."); // TODO case 'T' => tags = match (addtags(tags, opt.1)) { case void => @@ -416,11 +416,11 @@ fn test(args: []str) void = { case 'D' => append(defines, opt.1); case 'j' => - abort(); // TODO + abort("-j option not implemented yet."); // TODO case 'l' => append(libs, opt.1); case 't' => - abort(); // TODO + abort("-t option not implemented yet."); // TODO case 'o' => output = opt.1; case 'T' =>