From aae5dbabe838c8228222d0dce0ef645fe6330987 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Tue, 23 Aug 2022 16:33:49 +0200 Subject: [PATCH] Fixed compilation issue with jcli Upgraded jcli --- dub.json | 2 +- source/tlang/commandline/commands.d | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dub.json b/dub.json index 615645c..d730efc 100644 --- a/dub.json +++ b/dub.json @@ -5,7 +5,7 @@ "copyright": "Copyright © 2021, Tristan B. Kildaire", "dependencies": { "gogga": "~>0.1.0", - "jcli": "~>0.12.0" + "jcli": "~>0.24.0" }, "description": "The official Tristan language compiler project", "license": "GPLv3", diff --git a/source/tlang/commandline/commands.d b/source/tlang/commandline/commands.d index 099b8ee..aff42d4 100644 --- a/source/tlang/commandline/commands.d +++ b/source/tlang/commandline/commands.d @@ -12,6 +12,8 @@ import compiler.compiler : beginCompilation; import std.exception : ErrnoException; import compiler.lexer : Lexer; +// import jcli.cli; + @Command("help", "Shows the help screen") struct helpCommand { @@ -28,7 +30,7 @@ struct helpCommand @Command("compile", "Compiles the given file(s)") struct compileCommand { - @CommandPositionalArg(0, "source file", "The source file to compile") + @ArgPositional("source file", "The source file to compile") string sourceFile; // @CommandRawListArg @@ -53,7 +55,7 @@ struct compileCommand @Command("lex", "Performs tokenization of the given file(s)") struct lexCommand { - @CommandPositionalArg(0, "source file", "The source file to compile") + @ArgPositional("source file", "The source file to compile") string sourceFile; void onExecute()